From 3e9b81cd3fd435b754996d5dfab926d491d40392 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sat, 14 Jun 2025 00:52:50 -0400 Subject: [PATCH] Extend token lifetime to 3 days (#1172) ## Description: Extend token lifetime from 6 hours to 3 days. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com> --- src/client/jwt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/jwt.ts b/src/client/jwt.ts index 9d76ff857..4fdf8ae15 100644 --- a/src/client/jwt.ts +++ b/src/client/jwt.ts @@ -125,7 +125,7 @@ function _isLoggedIn(): IsLoggedInResponse { logOut(); return false; } - const refreshAge: number = 6 * 3600; // 6 hours + const refreshAge: number = 3 * 24 * 3600; // 3 days if (iat !== undefined && now >= iat + refreshAge) { console.log("Refreshing access token..."); postRefresh().then((success) => {