Skip to content

Commit

Permalink
Add different secrets for different tokenization strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Aug 6, 2023
1 parent 9ff91c4 commit d5598f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion api/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"signUpIsPublic": "SIGN_UP_IS_PUBLIC",
"jwt": {
"expiresIn": "JWT_EXPIRES_IN",
"secret": "JWT_SECRET"
"secret": "JWT_SECRET",
"accountActivationSecret": "JWT_ACTIVATION_SECRET",
"passwordRecoverySecret": "JWT_RESET_SECRET"
},
"password": {
"minLength": "PASSWORD_MIN_LENGTH",
Expand Down
4 changes: 3 additions & 1 deletion api/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"signUpIsPublic": true,
"jwt": {
"expiresIn": "2h",
"secret": null
"secret": null,
"accountActivationSecret": "mySecretForAccountActivation",
"passwordRecoverySecret": "mySecretForPasswordReset"
},
"password": {
"minLength": 6,
Expand Down
4 changes: 3 additions & 1 deletion api/config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"requireUserAccountActivation": true,
"jwt": {
"expiresIn": "1d",
"secret": "myVeryBadJWTSecretForTests"
"secret": "myVeryBadJWTSecretForTests",
"accountActivationSecret": "mySecretForAccountActivation",
"passwordRecoverySecret": "mySecretForPasswordReset"
}
},
"geolocation": {
Expand Down

0 comments on commit d5598f5

Please sign in to comment.