[Bug][Medium] Server boots with no JWT_SECRET (only a warning)
#14
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium (Low in dev) · Type: Bug / hardening
Problem
server/src/utils/auth.js:10-12only logs a warning whenJWT_SECRETis unset, then continues to start. With no secret,jwt.verifythrows for every request (so login is silently unusable), and running without a configured secret is a production-safety hazard.Suggested fix
Fail fast in production when the secret is missing:
(Or always throw — the app is unusable without it anyway.)