fix(sso): allow custom organization roles in provisioning types (#7722)

(cherry picked from commit a605e70f4e)
This commit is contained in:
Muzzaiyyan Hussain
2026-02-18 22:31:37 +08:00
committed by Alex Yang
parent 09ebd0d988
commit 2803e1e8fa
+2 -2
View File
@@ -5,13 +5,13 @@ import type { NormalizedSSOProfile } from "./types";
export interface OrganizationProvisioningOptions {
disabled?: boolean;
defaultRole?: "member" | "admin";
defaultRole?: string;
getRole?: (data: {
user: User & Record<string, any>;
userInfo: Record<string, any>;
token?: OAuth2Tokens;
provider: SSOProvider<SSOOptions>;
}) => Promise<"member" | "admin">;
}) => Promise<string>;
}
export interface AssignOrganizationFromProviderOptions {