first commit

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
root
2026-05-10 19:20:03 +00:00
parent 1050bb39ec
commit a3f08242fe
58 changed files with 5803 additions and 261 deletions

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

@@ -0,0 +1,14 @@
import type { DefaultSession } from "next-auth";
declare module "next-auth" {
interface Session {
user: DefaultSession["user"] & { id: string; role: "USER" | "ADMIN" };
}
}
declare module "next-auth/jwt" {
interface JWT {
id?: string;
role?: "USER" | "ADMIN";
}
}