Files
2023-02-07 19:56:59 +09:00

28 lines
655 B
TypeScript

import { DefaultSession } from "next-auth";
declare module "next-auth" {
interface Session {
user: {
/** The user's role. */
role: string;
/** True when the user is new. */
isNew: boolean;
/** Iso timestamp of the user's acceptance of the terms of service */
tosAcceptanceDate?: string;
} & DefaultSession["user"];
}
}
declare module "next-auth/jwt" {
interface JWT {
/** The user's role. */
role: string;
/** True when the user is new. */
isNew?: boolean;
sub: string;
/** Iso timestamp of the user's acceptance of the terms of service */
tosAcceptanceDate?: string;
}
}