fix: Introduce a new prop in the session to extract the profile username when inside an org (#18979)

* fix: flaky test organization.spec

* fix: use profile.username

* update

* update

* update
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-03-25 09:46:00 +05:30
1 parent 214528ffa8
commit 3ecc9319c7
4 files changed
+8 -1

No files matched your search

+2
View File
@@ -35,6 +35,7 @@ declare module "next-auth" {
role: MembershipRole;
};
username?: PrismaUser["username"];
orgAwareUsername?: PrismaUser["username"];
avatarUrl?: PrismaUser["avatarUrl"];
role?: PrismaUser["role"] | "INACTIVE_ADMIN";
locale?: string | null;
@@ -66,6 +67,7 @@ declare module "next-auth/jwt" {
domainSuffix: string;
role: MembershipRole;
};
orgAwareUsername?: PrismaUser["username"];
organizationId?: number | null;
locale?: string;
}