mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
b7d0c4331c
part of #879
28 lines
655 B
TypeScript
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;
|
|
}
|
|
}
|