Skip to content

Commit

Permalink
fix: when the 'refreshToken' expires, it does not re-authenticate (#4231
Browse files Browse the repository at this point in the history
)
  • Loading branch information
likui628 committed Aug 26, 2024
1 parent 20a3868 commit df7757d
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 df7757d

Please sign in to comment.