15 lines
286 B
TypeScript
15 lines
286 B
TypeScript
import type { DefaultSession } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: DefaultSession["user"] & { id: string; role: "USER" | "ADMIN" };
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
id?: string;
|
|
role?: "USER" | "ADMIN";
|
|
}
|
|
}
|