feat: add loginWithCustomTokenExchange method#799
Merged
yogeshchoudhary147 merged 1 commit intomainfrom Feb 5, 2026
Merged
Conversation
bd8cea9 to
2fd08c3
Compare
3f853a7 to
a68ea25
Compare
Adds `loginWithCustomTokenExchange()` method for Custom Token Exchange operations, implementing the spa-js 2.14.0 feature. Changes: - Added `loginWithCustomTokenExchange()` method to AuthService - Exchanges external tokens and establishes authenticated session - Bumped @auth0/auth0-spa-js from 2.13.1 to 2.14.0 - Added comprehensive tests (5 new tests) - Updated EXAMPLES.md with new method usage Implementation follows RFC 8693 token exchange grant type.
a68ea25 to
a5f1622
Compare
gyaneshgouraw-okta
approved these changes
Feb 5, 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.
📝 Summary
This PR adds support for the
loginWithCustomTokenExchange()method from auth0-spa-js 2.14.0 to auth0-angular, enabling token exchange flows based on RFC 8693. This allows apps to exchange external or legacy tokens for Auth0 tokens directly in Angular.This implementation aligns with the auth0-spa-js changes in auth0/auth0-spa-js#1526.
🔧 Changes
loginWithCustomTokenExchange()method to theAuthServicewith full TypeScript and JSDoc supportCustomTokenExchangeOptionsandTokenEndpointResponsetypes@auth0/auth0-spa-jsfrom 2.13.1 to 2.14.0EXAMPLES.md🧪 Testing
💥 Impact
Test plan