UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

12 lines (10 loc) 446 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); //#region src/isomorphicBtoa.ts const isomorphicBtoa = (data) => { if (typeof btoa !== "undefined" && typeof btoa === "function") return btoa(data); else if (typeof globalThis.Buffer !== "undefined") return globalThis.Buffer.from(data).toString("base64"); return data; }; //#endregion exports.isomorphicBtoa = isomorphicBtoa; //# sourceMappingURL=isomorphicBtoa.js.map