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
Resources/Instructions
backend/config/auth.config.js — where the variable is consumed and validated
backend/middleware/auth.middleware.js — where it's used for JWT signing
Overview
The authentication system requires a
TOKEN_SECRETenvironment 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
TOKEN_SECRETtobackend/.env.examplewith a placeholder value and comment explaining its purposeTOKEN_SECRETset in their environment.envconfigurationResources/Instructions
backend/config/auth.config.js— where the variable is consumed and validatedbackend/middleware/auth.middleware.js— where it's used for JWT signing