Closed saadjutt01 closed 2 years ago
Closes #213
All the secrets should be saved in DB, auto-generated and if already present, load them on server start.
Moved ACCESS_TOKEN_SECRET, REFRESH_TOKEN_SECRET, AUTH_CODE_SECRET, SESSION_SECRET from process.env to process.secrets
ACCESS_TOKEN_SECRET
REFRESH_TOKEN_SECRET
AUTH_CODE_SECRET
SESSION_SECRET
process.env
process.secrets
On startup:
Updated seedDB.ts accordingly
seedDB.ts
npm run lint:fix
npm test
:tada: This PR is included in version 0.9.0 :tada:
The release is available on:
v0.9.0
Your semantic-release bot :package::rocket:
Issue
Closes #213
Intent
All the secrets should be saved in DB, auto-generated and if already present, load them on server start.
Implementation
Moved
ACCESS_TOKEN_SECRET
,REFRESH_TOKEN_SECRET
,AUTH_CODE_SECRET
,SESSION_SECRET
fromprocess.env
toprocess.secrets
On startup:
Updated
seedDB.ts
accordinglyChecks
npm run lint:fix
).npm test
).