Nuxt Session Password Generator

At least 32 characters for NUXT_SESSION_PASSWORD.

Very strong0 bitsGenerated in your browser

Local alternative

openssl rand -base64 24

Prefer generating secrets on the machine that uses them? This command produces an equivalent value.

nuxt-auth-utils seals session cookies with this value and rejects strings shorter than 32 characters. Unlike a Laravel APP_KEY this is a plain string rather than encoded bytes, so no base64 wrapper is needed.

Frequently asked questions

Where does NUXT_SESSION_PASSWORD go?

Into the NUXT_SESSION_PASSWORD environment variable. nuxt-auth-utils seals the session cookie with it and requires at least 32 characters — shorter values are rejected.

What happens on rotation?

Existing session cookies can no longer be opened, so every session ends. That also makes rotation the right tool for terminating all sign-ins server-side after an incident.