diff --git a/.changeset/beige-eyes-relate.md b/.changeset/beige-eyes-relate.md new file mode 100644 index 0000000000..9458d83d0c --- /dev/null +++ b/.changeset/beige-eyes-relate.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': patch +--- + +`OrganizationMembershipRole` should respect authorization types provided by the developer if those exist. diff --git a/packages/backend/src/api/resources/Enums.ts b/packages/backend/src/api/resources/Enums.ts index 7cc6005377..35d83394b3 100644 --- a/packages/backend/src/api/resources/Enums.ts +++ b/packages/backend/src/api/resources/Enums.ts @@ -1,3 +1,5 @@ +import type { OrganizationCustomRoleKey } from '@clerk/types'; + export type OAuthProvider = | 'facebook' | 'google' @@ -20,7 +22,7 @@ export type OAuthStrategy = `oauth_${OAuthProvider}`; export type OrganizationInvitationStatus = 'pending' | 'accepted' | 'revoked'; -export type OrganizationMembershipRole = 'basic_member' | 'guest_member' | 'admin'; +export type OrganizationMembershipRole = OrganizationCustomRoleKey; export type SignInStatus = 'needs_identifier' | 'needs_factor_one' | 'needs_factor_two' | 'complete';