Browse Source

Longer refresh token lifetime

master
Alex Mikhalev 6 years ago
parent
commit
7bcf145f6d
  1. 2
      server/authentication.ts

2
server/authentication.ts

@ -22,7 +22,7 @@ if (!JWT_SECRET) {
const ISSUER = "sprinklers3"; const ISSUER = "sprinklers3";
const ACCESS_TOKEN_LIFETIME = 30 * 60; // 30 minutes const ACCESS_TOKEN_LIFETIME = 30 * 60; // 30 minutes
const REFRESH_TOKEN_LIFETIME = 24 * 60 * 60; // 24 hours const REFRESH_TOKEN_LIFETIME = 7 * 24 * 60 * 60; // 7 days
function signToken( function signToken(
claims: tok.TokenClaimTypes, claims: tok.TokenClaimTypes,

Loading…
Cancel
Save