Skip to content

Commit

Permalink
fix: session refresh loop in all request interceptors (#258)
Browse files Browse the repository at this point in the history
* fix: session refresh loop in all request interceptors

* fix: PR changes

* fix: PR changes

* chore: increase size limit

---------

Co-authored-by: Mihaly Lengyel <[email protected]>
  • Loading branch information
anku255 and porcellus authored Jun 10, 2024
1 parent 34cca08 commit d873763
Show file tree
Hide file tree
Showing 23 changed files with 539 additions and 170 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [20.1.0] - 2024-05-31

### Changes

- Fixed the session refresh loop in all the request interceptors that occurred when an API returned a 401 response despite a valid session. Interceptors now attempt to refresh the session a maximum of ten times before throwing an error. The retry limit is configurable via the `maxRetryAttemptsForSessionRefresh` option.

## [20.0.1] - 2024-05-24

### Changes
Expand Down
2 changes: 1 addition & 1 deletion bundle/bundle.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion lib/build/axios.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

207 changes: 107 additions & 100 deletions lib/build/axios.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions lib/build/axiosError.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 1 addition & 18 deletions lib/build/axiosError.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions lib/build/fetch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions lib/build/types.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions lib/build/utils/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/build/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 39 additions & 5 deletions lib/build/xmlhttprequest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d873763

Please sign in to comment.