Files
OpenFrame/types/next-auth.d.ts
T

21 lines
371 B
TypeScript

import NextAuth, { type DefaultSession } from 'next-auth';
declare module 'next-auth' {
interface Session {
user: {
id: string;
isAdmin: boolean;
} & DefaultSession['user'];
}
interface User {
isAdmin?: boolean;
}
}
declare module 'next-auth/jwt' {
interface JWT {
isAdmin?: boolean;
}
}