From d27163a915519d5635190a7a3ed0bb3c4aa3a2f4 Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Wed, 19 Feb 2025 09:00:30 +0000 Subject: [PATCH] Merged in feat/auth-refresh-token-time (pull request #1345) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat: auth - changed the time left before we trying to refresh the token * feat: auth - changed the time left before we trying to refresh the token Approved-by: Joakim Jäderberg --- constants/auth.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/constants/auth.ts b/constants/auth.ts index fae7a2520..656178378 100644 --- a/constants/auth.ts +++ b/constants/auth.ts @@ -1,8 +1,10 @@ /** * How many seconds before the expiry of the access token - * the client should refresh the tokens + * the client should refresh the tokens. + * Should be ~10% of the token lifetime. + * The token life time is 30 minutes */ -export const PRE_REFRESH_TIME_IN_SECONDS = 30 +export const PRE_REFRESH_TIME_IN_SECONDS = 180 /** * How many minutes the client should be allowed to be inactive