Initial commit: EduBox V2 platform
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
import "next-auth";
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
email: string;
|
||||
role: string;
|
||||
establishmentId?: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
role: string;
|
||||
establishmentId?: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
role?: string;
|
||||
establishmentId?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user