Nuxt Session Password & App Secret Generator

Generate a NUXT_SESSION_PASSWORD for nuxt-auth-utils or a NUXT_APP_SECRET for Nuxt 4.6+, right in your browser.

32 random bytes as hex (64 characters), for nuxt-auth-utils. Generated in your browser, never sent to a server.

How to use NUXT_SESSION_PASSWORD

1. Add to your .env file

NUXT_SESSION_PASSWORD=

2. Configure in nuxt.config.ts

export default defineNuxtConfig({
  runtimeConfig: {
    session: {
      password: '' // overridden by NUXT_SESSION_PASSWORD
    }
  }
})

Which one do I need?

On nuxt-auth-utils v0.5.x (latest is v0.5.31), set NUXT_SESSION_PASSWORD. On Nuxt 4.6+, set NUXT_APP_SECRET in production if a module or server feature uses it, such as useSession from nuxt/server: dev generates one for you, but builds never do. Heads-up: an open nuxt-auth-utils pull request, #546, proposes moving to appSecret for v0.6, which would ignore NUXT_SESSION_PASSWORD and log every user out once (checked October 10, 2026).

Frequently asked questions

Nuxt Beyond ships auth (nuxt-auth-utils), Stripe and Cloudflare deploy wired up, for a one-time price.

Free tool by NuxtBeyond