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 = [];
|
||||
console.error('Refresh token failed, please login again.');
|
||||
await doReAuthenticate();
|
||||
|
||||
throw refreshError;
|
||||
} finally {
|
||||
client.isRefreshing = false;
|
||||
|
|
Loading…
Reference in New Issue