mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-06-28 16:25:46 +08:00
Fixed revalidation page not redirecting properly if server is unreachable
This commit is contained in:
parent
49aa0cb5a6
commit
b8efd638ae
2 changed files with 4 additions and 4 deletions
|
@ -88,11 +88,11 @@ export async function TokenRefresh() {
|
|||
"Token refresh success! New Access Token",
|
||||
response.data.access
|
||||
);*/
|
||||
return [true];
|
||||
return true;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("Refresh Failed: " + JSON.stringify(error.response.data));
|
||||
return [false, error.response.data];
|
||||
console.log("Refresh Failed: " + JSON.stringify(error.response));
|
||||
return false;
|
||||
});
|
||||
}
|
||||
export async function UserInfo() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue