feat: include org role in org session data (#14652)
* feat: include org role in org session data * update contents * remove: files
This commit is contained in:
1 parent
f6e45842fd
commit
dbbd78fb26
4 files changed
+65
-27
No files matched your search
Vendored
+4
@@ -1,6 +1,8 @@
|
||||
import type { User as PrismaUser, UserPermissionRole } from "@prisma/client";
|
||||
import type { DefaultUser } from "next-auth";
|
||||
|
||||
import type { MembershipRole } from "@calcom/prisma/enums";
|
||||
|
||||
import type { UserProfile } from "./UserProfile";
|
||||
|
||||
declare module "next-auth" {
|
||||
@@ -30,6 +32,7 @@ declare module "next-auth" {
|
||||
logoUrl?: string | null;
|
||||
fullDomain: string;
|
||||
domainSuffix: string;
|
||||
role: MembershipRole;
|
||||
};
|
||||
username?: PrismaUser["username"];
|
||||
avatarUrl?: PrismaUser["avatarUrl"];
|
||||
@@ -61,6 +64,7 @@ declare module "next-auth/jwt" {
|
||||
logoUrl?: string | null;
|
||||
fullDomain: string;
|
||||
domainSuffix: string;
|
||||
role: MembershipRole;
|
||||
};
|
||||
organizationId?: number | null;
|
||||
locale?: string;
|
||||
|
||||
Reference in new issue
Block a user