-
Notifications
You must be signed in to change notification settings - Fork 0
/
next-auth.d.ts
46 lines (44 loc) · 1.02 KB
/
next-auth.d.ts
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
36
37
38
39
40
41
42
43
44
45
46
import NextAuth from "next-auth/next";
declare module "next-auth" {
interface User {
name: string;
email: string;
image: string;
role: string;
id: string;
byGoogle: boolean;
username: string;
picture: string;
bio: string;
skills: string[];
certifications: string[];
education: string[];
phone: string;
isMentor: boolean;
}
}
declare module "next-auth" {
/**
* Returned by `useSession`, `getSession` and received as a prop on the `Provider` React Context
*/
interface Session {
test: string;
isMentor: boolean;
user: {
name?: string | null;
email?: string | null;
image?: string | null;
role?: string | null;
id?: string | null;
byGoogle?: boolean;
username?: string | null;
picture?: string | null;
bio?: string | null;
skills?: string[] | null;
certifications?: string[] | null;
education?: string[] | null;
phone?: string | null;
isMentor?: boolean | null;
};
}
}