mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
signup and loginbasics
This commit is contained in:
20
packages/types/next-auth.d.ts
vendored
Normal file
20
packages/types/next-auth.d.ts
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
import { User as PrismaUser } from "@prisma/client";
|
||||
import { 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"];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user