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,