Refactor session encryption variable names for consistency

- Changed `NUXT_SESSION_SECRET` to `NUXT_SESSION_PASSWORD` across configuration files and documentation to align with the usage in nuxt-auth-utils.
- Updated related comments and documentation to reflect the new variable name, ensuring clarity for developers and users.
This commit is contained in:
Bastian Masanek
2025-11-01 16:22:00 +01:00
parent d231081b08
commit e48f3b5ece
5 changed files with 10 additions and 9 deletions

View File

@@ -69,10 +69,10 @@ export default defineNuxtConfig({
},
// Session configuration
// Note: nuxt-auth-utils automatically reads NUXT_SESSION_PASSWORD from process.env
session: {
maxAge: 60 * 60 * 24 * 30, // 30 days in seconds
name: 'experimenta-session',
password: process.env.NUXT_SESSION_SECRET || '',
},
// Test credentials (for automated testing only)