251127:1700 Frontend Start Build
This commit is contained in:
29
frontend/types/next-auth.d.ts
vendored
Normal file
29
frontend/types/next-auth.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// File: types/next-auth.d.ts
|
||||
import NextAuth, { DefaultSession } from "next-auth"
|
||||
|
||||
declare module "next-auth" {
|
||||
interface Session {
|
||||
user: {
|
||||
id: string;
|
||||
role: string;
|
||||
organizationId?: number;
|
||||
} & DefaultSession["user"]
|
||||
accessToken?: string;
|
||||
}
|
||||
|
||||
interface User {
|
||||
id: string;
|
||||
role: string;
|
||||
organizationId?: number;
|
||||
accessToken?: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "next-auth/jwt" {
|
||||
interface JWT {
|
||||
id: string;
|
||||
role: string;
|
||||
organizationId?: number;
|
||||
accessToken?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user