Skip to content

v0.3.2 Node 26, dependency refresh, NUXT_APP_SECRET rename

Latest

Choose a tag to compare

@IAMSDR IAMSDR released this 12 Nov 13:11
e57b330

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:
    NUXT_APP_SECRET=<your-secret>
    
    Keep PORT and your Redis settings (REDIS_URL or UPSTASH_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_date from the dependency bump applies on deploy).
  • Vercel: Project Settings → Environment Variables → add NUXT_APP_SECRET, remove NUXT_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 (packageManager field). Node 25+ no longer bundles Corepack, so a fresh install needs:
    npm install -g corepack && corepack enable
    pnpm install
    
  • .npmrc removed — install settings moved to pnpm-workspace.yaml (shamefullyHoist, strictPeerDependencies: false, refreshed overrides, allowBuilds for postinstall scripts).

Dependencies (latest compatible)

  • nuxt 4.6.4 · nuxt-auth-utils 0.6.2 · @simplewebauthn/server 14.1.0 · vite 8.3.8 · wrangler 4.160.1 · tailwindcss 4.3.5 · vue 3.5.45 · eslint 10.14.0 · vitest 5.1.0
  • Plus @iconify-json/lucide, @upstash/redis, idb-keyval, otpauth, @nuxt/devtools, ws, and refreshed transitive overrides (see pnpm-workspace.yaml / package.json).
  • typescript stays on ^6.0.3 (Nuxt's catalog pin — TS 7 has no programmatic API and is unsupported by typescript-eslint).

Server

  • createError: statusCode → status, statusMessage → statusText across server/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 message so passkey login with an unknown credential shows "Credential not found" instead of an empty error toast.

Client

  • Explicit defineOptions component names (fixes lint vue/match-component-file-name).
  • Typed WebAuthn options (PublicKeyCredentialCreationOptionsJSON / PublicKeyCredentialRequestOptionsJSON).
  • Shared errorMessage() helper on login so password + passkey paths surface data.message consistently.
  • Stricter types in cache.ts, offline.ts, toast.ts, shared/utils/iconCache.ts; cached-account delete rebuilds the map cleanly.

E2E

  • e2e/smoke.sh updated for the current agent-browser CLI (role-based queries, waits for the icon-only Settings button via button[aria-label="Settings"]).

Verification (from PR #25)

  • pnpm lint clean (31 prior findings fixed).
  • vitest run: 47/47 pass.
  • node-server and cloudflare builds 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

Full changelog

Compare v0.3.1...v0.3.2