aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/dashboard')
-rw-r--r--src/api/dashboard/dashboard.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html
index b80e0d2..0f31d7c 100644
--- a/src/api/dashboard/dashboard.html
+++ b/src/api/dashboard/dashboard.html
@@ -2314,10 +2314,10 @@ async function obtainTokens() {
clearTimeout(tokenTimer);
try {
// Refreshed as the session (`POST /auth/session`), whose cookie lets the page in;
- // the first: by the browser's password or the proxy's, else by that cookie.
+ // the first: by that cookie, else by the browser's password or the proxy's.
token = token && token.expiresAt > Date.now() + 60000
? await tokenCall("../auth/session", token.token)
- : await tokenCall("../auth/login").catch(() => tokenCall("../auth/session"));
+ : await tokenCall("../auth/session").catch(() => tokenCall("../auth/login"));
narrowToken = await tokenCall("../auth/refresh", token.token, { limit: READ_MEMBERS });
tokenWhy = null;
const life = Math.min(token.expiresAt, narrowToken.expiresAt) - Date.now();