15 lines
302 B
TypeScript
15 lines
302 B
TypeScript
import NextAuth from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user?: {
|
|
id?: string;
|
|
name?: string | null;
|
|
email?: string | null;
|
|
role?: "SUPERADMIN" | "ADMIN" | "USER";
|
|
status?: "PENDING" | "ACTIVE";
|
|
emailVerified?: boolean;
|
|
};
|
|
}
|
|
}
|