Fix token not being refreshed (#1975)

* Fix token not being refreshed

* Fix token not being refreshed

* v2

* Fix
This commit is contained in:
Charles Bochet
2023-10-11 17:12:39 +02:00
committed by GitHub
parent b2352212fc
commit 3b9ceade76
4 changed files with 26 additions and 11 deletions

View File

@ -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;
},
},
}

View File

@ -71,7 +71,7 @@ export class ApolloFactory<TCacheShape> implements ApolloManager<TCacheShape> {
const retryLink = new RetryLink({
delay: {
initial: 100,
initial: 3000,
},
attempts: {
max: 2,