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:
1 parent
214528ffa8
commit
3ecc9319c7
4 files changed
+8
-1
No files matched your search
Vendored
+2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user