setup done
This commit is contained in:
20
apps/student/next-auth.d.ts
vendored
Normal file
20
apps/student/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user