Skip to content

Commit

Permalink
Add JWT_KEY_EXP env (#54)
Browse files Browse the repository at this point in the history
* Add JWT_KEY_EXP env 

In some apps, we need shorter jwt token ttl.

* add missed JWT_KEY_EXP
  • Loading branch information
anders0l authored and hlogeon committed Nov 12, 2018
1 parent 462ed80 commit bf91c12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const {
THROTTLER_INTERVAL,
THROTTLER_MAX,
THROTTLER_MIN_DIFF,
JWT_KEY_EXP,
JWT_KEY,
TENANT_WHITE_LIST,
MAINTAIN_TLS_PORT,
Expand All @@ -31,7 +32,7 @@ export default {
jwt: {
algorithm: 'HS256',
secretSeparator: ':',
expiration: 604800,
expiration: JWT_KEY_EXP || 604800,
secret: JWT_KEY || 'uZrJ!xe*xN?!;oU.u*;QOSM+|=4C?WH?6eWPcK/6AkIXIVGQguSA*r'
},
redis: {
Expand Down

0 comments on commit bf91c12

Please sign in to comment.