diff --git a/packages/clerk-js/src/utils/devBrowser.ts b/packages/clerk-js/src/utils/devBrowser.ts index 256bbd30984..75d875afc0d 100644 --- a/packages/clerk-js/src/utils/devBrowser.ts +++ b/packages/clerk-js/src/utils/devBrowser.ts @@ -51,7 +51,8 @@ export function getDevBrowserJWTFromURL(url: URL): string { const jwt = jwtFromHash || jwtFromSearch; - if (jwt && typeof globalThis.history !== 'undefined') { + // eslint-disable-next-line valid-typeof + if (jwt && typeof globalThis.history !== undefined) { globalThis.history.replaceState(null, '', resultURL.href); }