Files
lcbp3/frontend/types/next-auth.d.ts
T
admin 11984bfa29
CI Pipeline / build (push) Failing after 12m41s
Build and Deploy / deploy (push) Failing after 2m44s
260322:1648 Correct Coresspondence / Doing RFA / Correct CI
2026-03-22 16:48:12 +07:00

39 lines
803 B
TypeScript

// File: types/next-auth.d.ts
import _NextAuth, { DefaultSession } from 'next-auth';
declare module 'next-auth' {
interface Session {
user: {
id: string;
username: string; // ✅ Added
role: string;
organizationId?: number;
} & DefaultSession['user'];
accessToken?: string;
refreshToken?: string;
error?: string;
}
interface User {
id: string;
username: string; // ✅ Added
role: string;
organizationId?: number;
accessToken?: string;
refreshToken?: string;
}
}
declare module 'next-auth/jwt' {
interface JWT {
id: string;
username: string; // ✅ Added
role: string;
organizationId?: number;
accessToken?: string;
refreshToken?: string;
accessTokenExpires?: number;
error?: string;
}
}