mirror of
https://github.com/Fayorg/calendrier-avant.git
synced 2026-05-27 17:18:38 +02:00
add: authentication WIP
This commit is contained in:
4
types/next-auth.d.ts
vendored
4
types/next-auth.d.ts
vendored
@@ -2,13 +2,13 @@ import NextAuth, { DefaultSession, DefaultJWT, DefaultUser } from "next-auth";
|
||||
import { JWT } from "next-auth/jwt";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session extends Omit<DefaultSession, 'user'> {
|
||||
interface Session {
|
||||
user: {
|
||||
id: number;
|
||||
firstName: string;
|
||||
lastName: string
|
||||
isTeacher: boolean;
|
||||
};
|
||||
} & DefaultSession["user"];
|
||||
}
|
||||
interface User {
|
||||
id: number;
|
||||
|
||||
Reference in New Issue
Block a user