1
0
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:
2023-12-18 10:01:22 +01:00
parent 2eaccd52e4
commit c48f1e23a3
5 changed files with 52 additions and 48 deletions

View File

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