Documentation Index
Fetch the complete documentation index at: https://mintlify.com/stephengpope/thepopebot/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thereset-auth command regenerates the AUTH_SECRET environment variable, which is used to encrypt session cookies. This immediately invalidates all active user sessions.
Usage
What It Does
- Generates a new random 32-byte base64-encoded secret
- Updates
AUTH_SECRETin your.envfile - Invalidates all existing sessions (users must log in again)
When to Use
Usereset-auth when:
- You suspect your
AUTH_SECREThas been compromised - You want to force all users to re-authenticate
- You need to clear all active sessions immediately
Output
Requirements
- Must be run in a thepopebot project directory
- Requires an existing
.envfile (runnpm run setupfirst if you haven’t)
Restart Required
After regenerating the secret, restart your server:Security Note
TheAUTH_SECRET is critical for session security. Keep it private and never commit it to version control. The .env file is gitignored by default.
Related
- CLI: setup - Initial project setup that generates AUTH_SECRET
- Security - Security best practices
- Deployment - Production deployment guide