UNPKG

create-auth-js-boiler

Version:
28 lines (24 loc) 510 B
import { User } from "@auth/core/types"; import { JWT } from "@auth/core/jwt"; import { UserRole } from "@prisma/client"; declare module "@auth/core/types" { interface User { role: userRole; isTwoFactorEnabled: boolean; isOAuth: boolean; } interface Session { user: User; } } declare module "@auth/core/jwt" { interface JWT { id: string; email: string; name: string; image: string; role: UserRole; isTwoFactorEnabled: boolean; isOAuth: boolean; } }