mirror of
https://github.com/revanced/revanced-website.git
synced 2025-05-29 21:00:13 +02:00
fix: redirect to token expired page on status 401
This commit is contained in:
parent
8c1b9d536d
commit
7c185fe608
@ -45,6 +45,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
if (response.status === 401) goto('/poll/token-expired/');
|
||||||
throw Error(`Status Code ${response.status}: ${await response.text()}`);
|
throw Error(`Status Code ${response.status}: ${await response.text()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<main>
|
<main>
|
||||||
<h1>Token expired</h1>
|
<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>
|
</main>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user