This commit is contained in:
dap
2024-08-26 14:46:57 +08:00
3 changed files with 6 additions and 4 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;