Skip to content

fix: validate JWT secret at startup - #30

Open
DEEPANSHU-KUMAR96 wants to merge 1 commit into
ankurdotio:mainfrom
DEEPANSHU-KUMAR96:fix/23-secret-validation
Open

DEEPANSHU-KUMAR96 wants to merge 1 commit into
ankurdotio:mainfrom
DEEPANSHU-KUMAR96:fix/23-secret-validation

Conversation

@DEEPANSHU-KUMAR96

Copy link
Copy Markdown

Summary

Fixes #23

Added validation for JWT_SECRET so the app throws an error at startup when it is missing.

Also added tests for:

  • Missing JWT_SECRET
  • Testing environment
  • Provided JWT_SECRET

Testing

  • npm run lint — passed
  • Config tests — 3/3 passed

The full test suite currently has 5 existing failures related to missing Google OAuth clientID configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security: Missing Secret Validation in src/config/config.js

1 participant