e4b766b9d6
* cleanup use of rawInput and pipe mdwr * Update ssg.ts * Update ssg.ts * Update viewer.tsx --------- Co-authored-by: zomars <zomars@me.com>
22 lines
635 B
TypeScript
22 lines
635 B
TypeScript
import type { User as PrismaUser } from "@prisma/client";
|
|
import type { DefaultUser } from "next-auth";
|
|
|
|
declare module "next-auth" {
|
|
/**
|
|
* Returned by `useSession`, `getSession` and received as a prop on the `Provider` React Context
|
|
*/
|
|
interface Session {
|
|
hasValidLicense: boolean;
|
|
user: User;
|
|
}
|
|
interface User extends Omit<DefaultUser, "id"> {
|
|
id: PrismaUser["id"];
|
|
emailVerified?: PrismaUser["emailVerified"];
|
|
email_verified?: boolean;
|
|
impersonatedByUID?: number;
|
|
belongsToActiveTeam?: boolean;
|
|
username?: PrismaUser["username"];
|
|
role?: PrismaUser["role"] | "INACTIVE_ADMIN";
|
|
}
|
|
}
|