setup done

This commit is contained in:
Om Lanke
2025-06-25 15:25:44 +05:30
parent ceb4b6b811
commit 2b777df5e2
55 changed files with 503 additions and 90 deletions

19
apps/admin/next-auth.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
import "next-auth";
declare module "next-auth" {
interface Session {
user: {
role?: "ADMIN" | "USER";
adminId?: number;
studentId?: number;
[key: string]: any;
};
}
}
declare module "next-auth/jwt" {
interface JWT {
role?: "ADMIN" | "USER";
adminId?: number;
studentId?: number;
}
}