feat: support customizing profile and accessToken routes#2451
Merged
Piyush-85 merged 10 commits intoauth0:mainfrom May 2, 2026
Merged
feat: support customizing profile and accessToken routes#2451Piyush-85 merged 10 commits intoauth0:mainfrom
Piyush-85 merged 10 commits intoauth0:mainfrom
Conversation
Changes --- - [x] Update the `RoutesOptions` type definition - [x] Update the functions that consume these routes (getAccessToken, useUser) to respect the programmatically configured routes - [x] Update the documentation - [x] Added/updated tests closes auth0#2327
Closed
5 tasks
Piyush-85
previously approved these changes
Apr 30, 2026
Contributor
|
@eliw00d thanks for the contribution. Changes look good to be merged. |
Contributor
Author
|
@Piyush-85 Absolutely! I'll get that up shortly. |
…-and-access-token-routes
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2451 +/- ##
=======================================
Coverage 89.85% 89.86%
=======================================
Files 68 68
Lines 8136 8140 +4
Branches 1744 1745 +1
=======================================
+ Hits 7311 7315 +4
Misses 813 813
Partials 12 12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Piyush-85
approved these changes
May 2, 2026
Merged
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.
📋 Changes
RoutesOptionstype definition📎 References
closes #2327
🎯 Testing
In an app that uses @auth0/nextjs-auth0, link to your local clone in the app's package.json as follows:
"@auth0/nextjs-auth0": "file:path/to/nextjs-auth0",wherepath/tois your path to it.I tested this with a local clone with an app that uses @auth0/nextjs-auth0 and everything works as expected.