Fix token not being refreshed (#1975)
* Fix token not being refreshed * Fix token not being refreshed * v2 * Fix
This commit is contained in:
@ -5,13 +5,13 @@ module.exports = {
|
||||
client: {
|
||||
overlay: {
|
||||
runtimeErrors: (error) => {
|
||||
if (error.message === "ResizeObserver loop limit exceeded") {
|
||||
return false;
|
||||
switch (error.message) {
|
||||
case "ResizeObserver loop limit exceeded":
|
||||
case "Unauthenticated":
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
if (error.message === "Unauthorized") {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
|
||||
|
||||
const retryLink = new RetryLink({
|
||||
delay: {
|
||||
initial: 100,
|
||||
initial: 3000,
|
||||
},
|
||||
attempts: {
|
||||
max: 2,
|
||||
|
||||
Reference in New Issue
Block a user