Skip to content

Commit

Permalink
BA: remove resolved promise on 401 responses
Browse files Browse the repository at this point in the history
  • Loading branch information
anicioalexandre committed Oct 6, 2023
1 parent a7ecc13 commit 853d15a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @baseapp-frontend/utils

## 1.3.3

### Patch Changes

- Remove `Promise.resolve()` when the request throws a `401` after the refresh token attempt.

## 1.3.2

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export const createAxiosInstance = ({
} catch (refreshError) {
if (eventEmitter.listenerCount(LOGOUT_EVENT)) {
eventEmitter.emit(LOGOUT_EVENT)
return Promise.resolve()
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/utils",
"description": "Util functions, constants and types.",
"version": "1.3.2",
"version": "1.3.3",
"main": "./dist/index.ts",
"module": "./dist/index.mjs",
"scripts": {
Expand Down

0 comments on commit 853d15a

Please sign in to comment.