@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
13 lines (12 loc) • 436 B
JavaScript
//#region src/internal/clerk-js/organization.ts
/**
* 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_`.
*/
function isOrganizationId(id) {
return typeof id === "string" && id.startsWith("org_");
}
//#endregion
export { isOrganizationId };
//# sourceMappingURL=organization.mjs.map