mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
21 lines
361 B
TypeScript
21 lines
361 B
TypeScript
import { 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;
|
|
}
|
|
}
|