muller-reporting-sys/types/next-auth.d.ts
2025-11-12 22:21:35 +03:00

22 lines
351 B
TypeScript

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