We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c836e commit ed39a2fCopy full SHA for ed39a2f
frontend/src/index.tsx
@@ -58,6 +58,9 @@ async function refresh_access_token() {
58
logout(false);
59
}
60
loggedIn.value = AppState.LoggedIn;
61
+ setInterval(async () => {
62
+ await refresh_access_token();
63
+ }, 1000 * 60 * 5);
64
} else {
65
localStorage.removeItem("loginKey");
66
localStorage.removeItem("secretKey");
@@ -66,9 +69,6 @@ async function refresh_access_token() {
69
67
70
68
71
refresh_access_token();
-setInterval(async () => {
- await refresh_access_token();
-}, 1000 * 60 * 5);
72
73
localStorage.removeItem("secret_key");
74
0 commit comments