Files
setrip/types/next-auth.d.ts
T

21 lines
338 B
TypeScript

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