-
-
Notifications
You must be signed in to change notification settings - Fork 98
Add TOKEN_SECRET to .env.example and document required auth environment variable #2107
Copy link
Copy link
Open
Labels
complexity: mediumfeature: Loginrole: devopssize: 1ptCan be done in 4-6 hoursCan be done in 4-6 hours
Milestone
Description
Overview
The authentication system requires a TOKEN_SECRET environment variable for JWT signing, but it is not documented in .env.example. The config previously fell back to a hardcoded placeholder, which has been replaced with a startup error. Developers and deployments need to know this variable is required.
Action Items
- Add
TOKEN_SECRETtobackend/.env.examplewith a placeholder value and comment explaining its purpose - Verify the dev and prod deployments have
TOKEN_SECRETset in their environment - Update any onboarding/setup documentation that references
.envconfiguration
Resources/Instructions
backend/config/auth.config.js— where the variable is consumed and validatedbackend/middleware/auth.middleware.js— where it's used for JWT signing
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
complexity: mediumfeature: Loginrole: devopssize: 1ptCan be done in 4-6 hoursCan be done in 4-6 hours
Type
Projects
Status
Prioritized Backlog