Longer refresh token lifetime
This commit is contained in:
parent
e5fd8ce364
commit
7bcf145f6d
@ -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…
x
Reference in New Issue
Block a user