fix: when the 'refreshToken' expires, it does not re-authenticate (#4231)

This commit is contained in:
Li Kui 2024-08-26 09:54:42 +08:00 committed by GitHub
parent 20a3868594
commit df7757d001
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

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