Files
Atlas/types/next-auth.d.ts
2025-11-12 20:21:32 +01:00

22 lines
318 B
TypeScript

import { DefaultSession } from 'next-auth';
declare module 'next-auth' {
interface Session {
user: {
id: string;
role: string;
} & DefaultSession['user'];
}
interface User {
role: string;
}
}
declare module 'next-auth/jwt' {
interface JWT {
id: string;
role: string;
}
}