mirror of
https://github.com/Fayorg/calendrier-avant.git
synced 2026-05-28 01:28:37 +02:00
add: new property on session & token
This commit is contained in:
3
types/next-auth.d.ts
vendored
3
types/next-auth.d.ts
vendored
@@ -8,6 +8,7 @@ declare module "next-auth" {
|
||||
firstName: string;
|
||||
lastName: string
|
||||
isTeacher: boolean;
|
||||
isAdmin: boolean;
|
||||
} & DefaultSession["user"];
|
||||
}
|
||||
interface User {
|
||||
@@ -15,6 +16,7 @@ declare module "next-auth" {
|
||||
firstName: string;
|
||||
lastName: string
|
||||
isTeacher: boolean;
|
||||
isAdmin: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,5 +26,6 @@ declare module "next-auth/jwt" {
|
||||
firstName: string;
|
||||
lastName: string
|
||||
isTeacher: boolean;
|
||||
isAdmin: boolean;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user