Skip to content

fix(clerk-js): retry load after stale dev browser - #9421

Draft
brkalow wants to merge 1 commit into
mainfrom
brk/fix-stale-dev-browser-retry
Draft

fix(clerk-js): retry load after stale dev browser#9421
brkalow wants to merge 1 commit into
mainfrom
brk/fix-stale-dev-browser-retry

Conversation

@brkalow

@brkalow brkalow commented Aug 12, 2026

Copy link
Copy Markdown
Member

Description

Fix Clerk initialization for development instances when FAPI rejects a stale development-browser value.

The environment request previously handled every failure as a cached-resource fallback, and its rejected settlement was not checked. As a result, an environment-only dev_browser_unauthenticated response could bypass the existing recovery loop. Clerk now clears the current development-browser value and retries both the environment and client requests.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview Aug 12, 2026 8:39pm
swingset Ready Ready Preview Aug 12, 2026 8:39pm

Request Review

@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6e960a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/electron Patch
@clerk/expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@9421

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@9421

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@9421

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@9421

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@9421

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@9421

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@9421

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@9421

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@9421

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@9421

@clerk/express

npm i https://pkg.pr.new/@clerk/express@9421

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@9421

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@9421

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@9421

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@9421

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@9421

@clerk/react

npm i https://pkg.pr.new/@clerk/react@9421

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@9421

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@9421

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@9421

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@9421

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@9421

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@9421

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@9421

commit: 6e960a1

@brkalow brkalow changed the title fix(js): retry load after stale dev browser fix(clerk-js): retry load after stale dev browser Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant