mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
fix(sso): allow custom organization roles in provisioning types (#7722)
(cherry picked from commit a605e70f4e)
This commit is contained in:
committed by
Alex Yang
parent
09ebd0d988
commit
2803e1e8fa
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user