30 lines
496 B
TypeScript
30 lines
496 B
TypeScript
import { NextAuthOptions } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
interface Session {
|
|
user: {
|
|
id: string;
|
|
email: string;
|
|
name: string;
|
|
role: string;
|
|
isMuayThai: boolean;
|
|
isYoga: boolean;
|
|
};
|
|
}
|
|
|
|
interface User {
|
|
id: string;
|
|
role: string;
|
|
isMuayThai: boolean;
|
|
isYoga: boolean;
|
|
}
|
|
}
|
|
|
|
declare module "next-auth/jwt" {
|
|
interface JWT {
|
|
id?: string;
|
|
role?: string;
|
|
isMuayThai?: boolean;
|
|
isYoga?: boolean;
|
|
}
|
|
} |