22 lines
362 B
TypeScript
22 lines
362 B
TypeScript
import "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
name: string;
|
|
email: string;
|
|
image?: string | null;
|
|
acceptedTermsAndPrivacy: boolean;
|
|
isAdmin: boolean;
|
|
};
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
id: string;
|
|
acceptedTermsAndPrivacy?: boolean;
|
|
}
|
|
}
|