fix: when the 'refreshToken' expires, it does not re-authenticate (#4231)
parent
20a3868594
commit
df7757d001
|
@ -60,6 +60,8 @@ export const authenticateResponseInterceptor = ({
|
||||||
client.refreshTokenQueue.forEach((callback) => callback(''));
|
client.refreshTokenQueue.forEach((callback) => callback(''));
|
||||||
client.refreshTokenQueue = [];
|
client.refreshTokenQueue = [];
|
||||||
console.error('Refresh token failed, please login again.');
|
console.error('Refresh token failed, please login again.');
|
||||||
|
await doReAuthenticate();
|
||||||
|
|
||||||
throw refreshError;
|
throw refreshError;
|
||||||
} finally {
|
} finally {
|
||||||
client.isRefreshing = false;
|
client.isRefreshing = false;
|
||||||
|
|
Loading…
Reference in New Issue