@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
14 lines (12 loc) • 536 B
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
//#region src/buildAccountsBaseUrl.ts
/**
* Builds a full origin string pointing to the Account Portal for the given frontend API.
*/
function buildAccountsBaseUrl(frontendApi) {
if (!frontendApi) return "";
return `https://${frontendApi.replace(/clerk\.accountsstage\./, "accountsstage.").replace(/clerk\.accounts\.|clerk\./, "accounts.")}`;
}
//#endregion
exports.buildAccountsBaseUrl = buildAccountsBaseUrl;
//# sourceMappingURL=buildAccountsBaseUrl.js.map