Skip to content

Commit

Permalink
fix: when the 'refreshToken' expires, it does not re-authenticate
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Aug 26, 2024
1 parent 20a3868 commit 79f1fe2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79f1fe2

Please sign in to comment.