Files
lcbp3/frontend/types/next-auth.d.ts
admin 5c49bac772
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled
251206:1710 specs: frontend plan P1,P3 wait Verification
2025-12-06 17:10:56 +07:00

36 lines
693 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;
refreshToken?: string;
error?: string;
}
interface User {
id: string;
role: string;
organizationId?: number;
accessToken?: string;
refreshToken?: string;
}
}
declare module "next-auth/jwt" {
interface JWT {
id: string;
role: string;
organizationId?: number;
accessToken?: string;
refreshToken?: string;
accessTokenExpires?: number;
error?: string;
}
}