Open
Conversation
1077838 to
760f990
Compare
760f990 to
4b993d6
Compare
🦋 Changeset detectedThe changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. |
pavinduLakshan
approved these changes
Apr 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request migrates the browser SDK's HTTP client implementation from Axios to a new native Fetch-based client. It removes all Axios dependencies and related legacy code, introduces a new
FetchHttpClientclass, and updates all usages and type references to use the new client. This modernizes the HTTP layer and reduces external dependencies.The most important changes are:
HTTP Client Migration:
FetchHttpClientclass inpackages/browser/src/FetchHttpClient.ts, implementing the HTTP client using the native Fetch API and a singleton pattern for instance management.axios-http-client.tsand its exports, and removed all imports and references toHttpClientInstanceand Axios types throughout the codebase. [1] [2] [3] [4] [5] [6]FetchHttpClientor the newHttpClientinterface from@asgardeo/javascriptinstead of the old Axios-based client. [1] [2] [3] [4] [5] [6] [7]Dependency Cleanup:
axiosfrompackages/browser/package.jsonand removed the oldbrace-expansionpackage in favor of@isaacs/brace-expansionin the rootpackage.json. [1] [2]Type and Interface Updates:
This change streamlines the SDK, reduces dependencies, and aligns the HTTP client implementation with modern browser APIs.
Related Issues
axiostofetch#372Related PRs
Checklist
Security checks