Skip to content

Commit

Permalink
fix: PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anku255 committed Jun 6, 2024
1 parent 690169c commit e297a7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/build/axios.js

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

5 changes: 5 additions & 0 deletions lib/ts/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,11 @@ export default class AuthHttpRequest {
}
let response =
localPrevResponse === undefined ? await httpCall(configWithAntiCsrf) : localPrevResponse;

// NOTE: No need to check for unauthorized response status here for session refresh,
// as we only reach this point on a successful response. Axios handles error responses
// by throwing an error, which is handled in the catch block.

logDebugMessage("doRequest: User's http call ended");

await saveTokensFromHeaders(response);
Expand Down

0 comments on commit e297a7e

Please sign in to comment.