[do not merge] force a deploy#1604
Draft
StephenWithPH wants to merge 5 commits into
Draft
Conversation
New checkAccountLinked() consults GET /user/linked and classifies the response as LINKED (204), UNLINKED (200 + link URL), INVALID (400), or TRANSIENT (network/5xx/timeout/cancellation). The JWT is attached per-call and the request bypasses the global 401 handler. Also adds the non-persisted view.auth0CallbackInProgress flag and wires its reducer into the store. Unused by the UI until later commits. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
RequireAccessToken now renders the loading overlay while view.auth0CallbackInProgress is set, and skips writing the intended post-login route during that window. This covers the post-callback gate round-trip added later so the user is not bounced to /login (clobbering their deep link) before the SPA enters its authenticated state. No-op until the flag is set. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Login reads location.state.authLinkingError and shows a retryable message; adds errorAlert.signInIncomplete to every locale. Inert until the gate routes unlinked/transient cases here in the next commit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
On the common-DB path (require_idp and no IdP org), Auth0TokenManager consults the account-linking gate before entering the authenticated state: 204 proceeds, 200 hands off to the server-owned link page, 400 clears the SDK and SPA token state and restarts login, and a transient failure leaves a retryable error at /login. Org-scoped (rcuksa) logins skip the gate. The finalizing flag is set at branch entry and cleared in a finally so it can never hang the SPA on the loading overlay. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🚀 PR Environment Deployed
|
75f0ef9 to
b15376b
Compare
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.
in support of...