mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-09-21 13:31:42 +00:00
15 lines
252 B
TypeScript
15 lines
252 B
TypeScript
import { type DefaultSession } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
role: "ADMIN" | "USER";
|
|
} & DefaultSession["user"];
|
|
}
|
|
|
|
interface User {
|
|
role?: "ADMIN" | "USER";
|
|
}
|
|
}
|