refactor: migrate authentication to NextAuth and clean up related services

This commit is contained in:
Julien Froidefond
2025-10-12 15:45:09 +02:00
parent 117ac243f5
commit 7d12a66c12
25 changed files with 558 additions and 353 deletions

28
types/next-auth.d.ts vendored Normal file
View File

@@ -0,0 +1,28 @@
import { DefaultSession } from "next-auth";
declare module "next-auth" {
interface Session {
user: {
id: string;
teamId: string;
firstName: string;
lastName: string;
} & DefaultSession["user"];
}
interface User {
teamId: string;
firstName: string;
lastName: string;
}
}
declare module "next-auth/jwt" {
interface JWT {
id: string;
teamId: string;
firstName: string;
lastName: string;
}
}