-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext-auth.d.ts
More file actions
35 lines (32 loc) · 770 Bytes
/
next-auth.d.ts
File metadata and controls
35 lines (32 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import NextAuth, { DefaultSession } from "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
first_name: string;
last_name: string;
email: string;
accountType?: string; // Ensure type is included here
// Add other fields as needed
} & DefaultSession["user"];
}
interface User {
id: string;
first_name: string;
last_name: string;
email: string;
emailVerified: Date | null;
image: string | null;
createdDate: Date;
membership: string;
isAdmin: boolean;
accountType?: string; // Ensure type is included here
}
interface TokenUser {
id: string;
email: string;
first_name: string;
last_name: string;
accountType?: string;
}
}