Skip to content

Commit db18787

Browse files
committed
fix(shared,clerk-js): Always drop __clerk_db_jwt and __dev_session params from the URL
1 parent 7d7c8d5 commit db18787

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.changeset/famous-years-tickle.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/shared': patch
3+
'@clerk/clerk-js': patch
4+
---
5+
6+
Always drop **clerk_db_jwt and **dev_session params from the URL

packages/shared/src/devBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function setDevBrowserJWTInURL(url: URL, jwt: string): URL {
2626
*/
2727
export function extractDevBrowserJWTFromURL(url: URL): string {
2828
const jwt = readDevBrowserJwtFromSearchParams(url);
29-
if (jwt && typeof globalThis.history !== 'undefined') {
29+
if (typeof globalThis.history !== 'undefined') {
3030
globalThis.history.replaceState(null, '', removeDevBrowserJwt(url));
3131
}
3232
return jwt;

0 commit comments

Comments
 (0)