sdk: add optional OAuth callback selection - #979
Merged
Merged
Conversation
Contributor
|
Maple development preview: https://1a490869.maple-ca8.pages.dev Commit: Uses development API, billing, flags and PCR configuration. Cloudflare Access applies. |
This branch was successfully deployed
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.
Builds on #978. Browser OAuth initiation can select an exact backend-registered callback while existing callers continue using their provider default. Google, GitHub, and Apple gain an optional final argument in both the low-level API and React context; platform settings expose the optional additional-callback list. Backend support and provider registration must precede selecting a new callback.
This is the callback-only SDK foundation for the auth-domain migration. It preserves existing credential persistence, login, refresh, logout, account confirmation, and native handoff behavior. Credential cleanup and cross-tab storage coordination are deferred to separate work after the migration is stable in production. This PR includes no cleanup API or storage changes.
Prepares TypeScript SDK version
4.1.0. Application dependency pins, runtime dependencies, and the Rust SDK are unchanged. Adds offline initiation coverage for all three providers, encrypted integration coverage for the callback/settings contract, and packed-package checks for the old and new React method signatures.Validation:
nix flake check --no-update-lock-filepassed on aarch64-darwin. Normal pre-commit checks run without bypass.No package publication, deployment, provider configuration, or application dependency update is included. Real hosted-auth repeat-login/account-switch/expired-session rehearsal remains part of auth integration.