Files
ai-portal/types/next-auth.d.ts
T
2026-05-06 17:22:50 +08:00

22 lines
313 B
TypeScript

import { DefaultSession } from "next-auth"
declare module "next-auth" {
interface Session {
user?: {
id: string
role: string
} & DefaultSession["user"]
}
interface User {
id: string
role: string
}
}
declare module "next-auth/jwt" {
interface JWT {
role?: string
}
}