@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
12 lines • 563 B
text/typescript
//#region src/devBrowser.d.ts
declare const DEV_BROWSER_KEY = "__clerk_db_jwt";
declare const DEV_BROWSER_HEADER = "Clerk-Db-Jwt";
declare function setDevBrowserInURL(url: URL, devBrowser: string): URL;
/**
* Gets the __clerk_db_jwt dev browser from either the hash or the search
* Side effect:
* Removes __clerk_db_jwt from the URL (hash and searchParams) and updates the browser history
*/
declare function extractDevBrowserFromURL(url: URL): string;
//#endregion
export { DEV_BROWSER_HEADER, DEV_BROWSER_KEY, extractDevBrowserFromURL, setDevBrowserInURL };