Redirect on token expiry
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
Reference in New Issue
Block a user