Repository navigation
What's changed
Patch release rolling up PR #25 chore: upgrade all dependencies to latest
Full diff: v0.3.1...v0.3.2 · PR: #25
⚠️ Action required: NUXT_SESSION_PASSWORD → NUXT_APP_SECRET
nuxt-auth-utils v0.6 consolidated session config around a single app secret. The old variable is no longer read.
| Before | After |
|---|---|
NUXT_SESSION_PASSWORD |
NUXT_APP_SECRET |
Requirements are unchanged: ≥32 characters, env-only (never stored in Redis), used to protect session cookies.
1. Generate a value (if you don't have one saved)
openssl rand -base64 32
2. Update every place you deploy
- Local dev / self-host (Node): in
.env, replace the line and restart:KeepNUXT_APP_SECRET=<your-secret>PORTand your Redis settings (REDIS_URLorUPSTASH_REDIS_REST_*). - Local Cloudflare dev: same change in
.dev.vars(never commit that file). See.dev.vars.example. - Cloudflare Pages: Dashboard → your project → Settings → Environment variables → rename the variable for Production and Preview → Redeploy.
- Cloudflare Workers: same rename in the Worker's variables/secrets → redeploy (new
compatibility_datefrom the dependency bump applies on deploy). - Vercel: Project Settings → Environment Variables → add
NUXT_APP_SECRET, removeNUXT_SESSION_PASSWORD→ redeploy (Production + Preview). - Docker / other hosts: update your secret store / compose file and restart the container.
3. Expect one re-login
nuxt-auth-utils v0.6 changed the session cookie format. After upgrading, all users are signed out once and must sign in again. This is expected and only happens once.
If the app reports an app-secret/session error after upgrade, check that NUXT_APP_SECRET is at least 32 characters and that you restarted / redeployed after changing it.
Runtime & tooling
- Node.js
26.13.1(pinned in.nvmrc, includes the 26.13.1 security fix). - pnpm
12.18.0(packageManagerfield). Node 25+ no longer bundles Corepack, so a fresh install needs:npm install -g corepack && corepack enable pnpm install .npmrcremoved — install settings moved topnpm-workspace.yaml(shamefullyHoist,strictPeerDependencies: false, refreshedoverrides,allowBuildsfor postinstall scripts).
Dependencies (latest compatible)
nuxt4.6.4 ·nuxt-auth-utils0.6.2 ·@simplewebauthn/server14.1.0 ·vite8.3.8 ·wrangler4.160.1 ·tailwindcss4.3.5 ·vue3.5.45 ·eslint10.14.0 ·vitest5.1.0- Plus
@iconify-json/lucide,@upstash/redis,idb-keyval,otpauth,@nuxt/devtools,ws, and refreshed transitive overrides (seepnpm-workspace.yaml/package.json). typescriptstays on^6.0.3(Nuxt's catalog pin — TS 7 has no programmatic API and is unsupported bytypescript-eslint).
Server
createError:statusCode→status,statusMessage→statusTextacrossserver/api/accounts/*,server/api/auth/*,server/api/webauthn/*,server/utils/redis.ts. No behavior change.- SimpleWebAuthn v14 typed JSON handlers in the WebAuthn endpoints.
- Missing-credential 404 now sets an explicit
messageso passkey login with an unknown credential shows "Credential not found" instead of an empty error toast.
Client
- Explicit
defineOptionscomponent names (fixes lintvue/match-component-file-name). - Typed WebAuthn options (
PublicKeyCredentialCreationOptionsJSON/PublicKeyCredentialRequestOptionsJSON). - Shared
errorMessage()helper on login so password + passkey paths surfacedata.messageconsistently. - Stricter types in
cache.ts,offline.ts,toast.ts,shared/utils/iconCache.ts; cached-account delete rebuilds the map cleanly.
E2E
e2e/smoke.shupdated for the currentagent-browserCLI (role-based queries, waits for the icon-only Settings button viabutton[aria-label="Settings"]).
Verification (from PR #25)
pnpm lintclean (31 prior findings fixed).vitest run: 47/47 pass.node-serverandcloudflarebuilds succeed; Cloudflare Pages + Workers previews deploy green.- Live browser smoke test: login, dashboard, TOTP, settings, passkey register + delete with virtual authenticator;
e2e/smoke.sh→SMOKE OK.
How to upgrade
git pull origin main
npm install -g corepack && corepack enable
pnpm install
# rename NUXT_SESSION_PASSWORD → NUXT_APP_SECRET everywhere, then:
pnpm dev # or: pnpm build && pnpm preview / deploy