Initial commit: JuanitoSport - Muay Thai & Yog4Fight PWA
This commit is contained in:
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user