mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-09-21 13:31:42 +00:00
Init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user