Skip to content

Commit

Permalink
fix(shared,clerk-js): Always drop __clerk_db_jwt and __dev_session pa…
Browse files Browse the repository at this point in the history
…rams from the URL
  • Loading branch information
nikosdouvlis committed Feb 27, 2024
1 parent 7d7c8d5 commit db18787
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/famous-years-tickle.md
@@ -0,0 +1,6 @@
---
'@clerk/shared': patch
'@clerk/clerk-js': patch
---

Always drop **clerk_db_jwt and **dev_session params from the URL
2 changes: 1 addition & 1 deletion packages/shared/src/devBrowser.ts
Expand Up @@ -26,7 +26,7 @@ export function setDevBrowserJWTInURL(url: URL, jwt: string): URL {
*/
export function extractDevBrowserJWTFromURL(url: URL): string {
const jwt = readDevBrowserJwtFromSearchParams(url);
if (jwt && typeof globalThis.history !== 'undefined') {
if (typeof globalThis.history !== 'undefined') {
globalThis.history.replaceState(null, '', removeDevBrowserJwt(url));
}
return jwt;
Expand Down

0 comments on commit db18787

Please sign in to comment.