22 lines
351 B
TypeScript
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
|
|
}
|
|
}
|