1
0
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:
2023-12-20 19:36:35 +01:00
parent 2e2a44cb5d
commit 8b32c62754
2 changed files with 25 additions and 19 deletions

View File

@@ -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;
}
}