diff --git a/packages/clerk-js/src/utils/organization.ts b/packages/clerk-js/src/utils/organization.ts index bebd32f8fe..097dc3bdb7 100644 --- a/packages/clerk-js/src/utils/organization.ts +++ b/packages/clerk-js/src/utils/organization.ts @@ -1,5 +1,7 @@ /** - * Checks and assumes a string is an organization ID if it starts with 'org_'. + * Checks and assumes a string is an organization ID if it starts with 'org_', specifically for + disambiguating with slugs. `_` is a disallowed character in slug names, so slugs cannot + start with `org_`. */ export function isOrganizationId(id: string) { return id.startsWith('org_');