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