mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-01 17:42:07 +00:00
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>
This commit is contained in:
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user