fix: redirect to token expired page on status 401

This commit is contained in:
afn 2023-03-19 13:29:16 -04:00
parent 8c1b9d536d
commit 7c185fe608
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@
});
if (!response.ok) {
if (response.status === 401) goto('/poll/token-expired/');
throw Error(`Status Code ${response.status}: ${await response.text()}`);
}

View File

@ -6,7 +6,7 @@
<main>
<h1>Token expired</h1>
<h2>Your access token has been revoked for inactivity. Please regenerate it.</h2>
<h2>Your access token has been revoked. Please regenerate it.</h2>
</main>
<style>