This PR fixes all instances where JWT tokens where decoded using a hardcoded something-secret string. It also fixes the .gitignore file so that package-lock.json and code-generated files are committed to the repository.
Changes
Add dotenv to the list of dependencies and configure it to load the .env file in config/globals.js.
Replace the hardcoded something-secret string with JWT_SECRET environment variable constant.
Remove package-lock.json and codegen files from the .gitignore.
Summary
This PR fixes all instances where JWT tokens where decoded using a hardcoded
something-secret
string. It also fixes the.gitignore
file so thatpackage-lock.json
and code-generated files are committed to the repository.Changes
dotenv
to the list of dependencies and configure it to load the.env
file inconfig/globals.js
.something-secret
string withJWT_SECRET
environment variable constant.package-lock.json
and codegen files from the.gitignore
.