Redirect on token expiry

This commit is contained in:
april
2024-01-04 13:36:21 -06:00
parent 9de454d491
commit 4e84dc842a
10 changed files with 116 additions and 34 deletions

View File

@@ -5,7 +5,6 @@ import {
Fieldset,
Group,
NumberInput,
ScrollArea,
ScrollAreaAutosize,
Stack,
TextInput,
@@ -86,6 +85,9 @@ export default function NewFlight() {
console.log(res);
return res.data;
},
retry: (failureCount, error) => {
return !error || error.response?.status !== 401;
},
onError: (error) => {
console.log(error);
},