Skip to content

fix(auth): defer initial session bridge - #416

Merged
onmax merged 2 commits into
mainfrom
fix/defer-initial-session-bridge
Aug 26, 2026
Merged

fix(auth): defer initial session bridge#416
onmax merged 2 commits into
mainfrom
fix/defer-initial-session-bridge

Conversation

@onmax

@onmax onmax commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

The client session watcher now waits for Better Auth snapshot changes instead of synchronously bridging the initial snapshot during useUserSession() setup. This prevents authenticated Nuxt consumers from stalling while preserving the existing post-mount reconciliation for hydrated SSR state.

This reproduces in quiverdk/portal#965. Without the eager callback, the previously hanging authenticated Playwright test passed in 54.9 seconds and the full preview suite passed in 6 minutes 18 seconds: preview run.

Test plan

  • pnpm lint
  • pnpm typecheck
  • pnpm prepack
  • pnpm dev:build
  • pnpm build:docs
  • pnpm test (320 passed)

@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
nuxt-better-auth-docs Ready Ready Preview Aug 26, 2026 11:25am

@pkg-pr-new

pkg-pr-new Bot commented Aug 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nuxtjs/better-auth@416

commit: db67369

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
better-auth db67369 Commit Preview URL

Branch Preview URL
Aug 26 2026, 11:26 AM

@onmax
onmax merged commit 475959d into main Aug 26, 2026
8 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant