From 7bcf145f6d2ca3ef9d60b4765e9a383a53d1303a Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Mon, 22 Jul 2019 21:33:36 -0600 Subject: [PATCH] Longer refresh token lifetime --- server/authentication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/authentication.ts b/server/authentication.ts index 9bb314b..348f6eb 100644 --- a/server/authentication.ts +++ b/server/authentication.ts @@ -22,7 +22,7 @@ if (!JWT_SECRET) { const ISSUER = "sprinklers3"; 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( claims: tok.TokenClaimTypes,