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:
sean-brydon authored and GitHub committed 2024-04-19 12:32:04 +01:00
1 parent f6e45842fd
commit dbbd78fb26
4 files changed
+65 -27

No files matched your search

+4
View File
@@ -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;