Files
lcbp3/frontend/types/next-auth.d.ts
2025-11-27 17:08:49 +07:00

29 lines
538 B
TypeScript

// 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;
}
}