mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-18 08:43:56 +00:00
fix: redirect to token expired page on status 401
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
if (response.status === 401) goto('/poll/token-expired/');
|
||||
throw Error(`Status Code ${response.status}: ${await response.text()}`);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user