docs: add Authentication API migration guide (auth0-auth-js / auth0-server-js) - #1395
Open
tusharpandey13 wants to merge 2 commits into
Open
docs: add Authentication API migration guide (auth0-auth-js / auth0-server-js)#1395tusharpandey13 wants to merge 2 commits into
tusharpandey13 wants to merge 2 commits into
Conversation
…-server-js Add AUTH_MIGRATION_GUIDE.md covering the surgical migration of the Authentication layer off the auth0 package (AuthenticationClient, UserInfoClient) to @auth0/auth0-auth-js (stateless token grants) and @auth0/auth0-server-js (server-managed sessions). ManagementClient is out of scope and stays on auth0. Link the new guide from the README documentation list. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
3 tasks
Contributor
Author
|
Related PRs:
|
This was referenced Aug 27, 2026
Source-verified every API claim against auth0-auth-js and auth0-server-js.
Fix the mismatches found:
- fullResponse: remove the fabricated "token cache is bypassed" behavior.
auth0-auth-js AuthClient has no token cache; grant methods always hit the
endpoint. Token caching lives in auth0-server-js. Only discovery/JWKS is cached.
- getTokenByCode: options are codeVerifier and organization; there is no
expectedState parameter (that is on getTokenByMagicLinkCode). Corrected the
code comment and the state-handling note.
- initiateBackchannelAuthentication: scope goes via authorizationParams.scope,
not a top-level key; loginHint is an object ({ sub }), not a bare string.
- server-js re-exports: it DOES re-export ApiResponse and FullResponseOption
(alongside RequestOptions), not just RequestOptions.
- Custom store base class is AbstractStateStore (the exported name), not
AbstractSessionStore.
- serverClient.revokeRefreshToken also accepts an explicit { token }; noted it
defaults to the session refresh token.
- mfa.* list now includes deleteAuthenticator.
- changePassword accepts email OR username (plus connection), not email alone.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
tusharpandey13
force-pushed
the
docs/auth-migration-guide
branch
from
August 27, 2026 12:18
98aeddc to
a2ef5c8
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1395 +/- ##
========================================
Coverage 89.73% 89.73%
========================================
Files 441 441
Lines 20799 20799
Branches 10146 9809 -337
========================================
Hits 18663 18663
Misses 2136 2136
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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
Adds
AUTH_MIGRATION_GUIDE.md, an end-user guide for migrating the Authentication API layer off theauth0package (AuthenticationClient,UserInfoClient) to the current first-party server SDKs:@auth0/auth0-auth-jsfor stateless token grants (the direct successor toAuthenticationClient)@auth0/auth0-server-jsfor server-managed sessions (redirect login, cookies, refresh, logout)The Management API (
ManagementClient) is explicitly out of scope and stays onauth0. The guide is written to sit alongside the existing v5/v6 migration guides and matches their conventions.What the guide covers
>= 1.12.1, and the accurateRequestOptions/fullResponsepost-1.12.1 caveat.AuthClientandServerClient..oauth,.database,.passwordless,.backchannel,.tokenExchange, andUserInfoClient, with before/after code and a quick lookup table.expires_in→expiresAtexpiry bug, and the typed error model withisMfaRequiredError().startInteractiveLogin→completeInteractiveLogin→getUser/getAccessToken→logout), store setup, and non-redirect session logins.Also links the new guide from the README documentation list.
🤖 Generated with Claude Code
Related PRs