Repository navigation
Upgrade CustomAuth to v22.3.3 - #85
Merged
Merged
Conversation
Migrate login providers and redirect handling to the unified v22 API while preserving existing verifier identities and wallet key selection. Add compatibility regressions and deployment notes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The authentication SDK migration affects existing wallet-key recovery, but live Google, Facebook, and Auth0 logins and wallet-address continuity remain unverified and require human validation against production-equivalent provider settings.
No open issues 🎉
What changed in this PR
Upgrades CustomAuth from 20.4.0 to 22.3.3 and migrates the wallet login integration to its unified API while preserving existing provider identities, redirect behavior, and wallet-key selection.
Changes:
- Unifies Google, Facebook, and Auth0 login configuration and hooks.
- Updates dependencies and documents deployment requirements and live wallet-address checks.
- Adds regression coverage for provider mappings, redirect results, error handling, and Google’s grouped key request.
| File | Description |
|---|---|
yarn.lock |
Updates CustomAuth and its dependency tree. |
src/sections/Login/components/LoginButton.tsx |
Switches Google to the unified login hook. |
src/login/torus.ts |
Migrates login parameters and redirect results to v22. |
src/login/torus.test.ts |
Adds integration regression tests and SDK compatibility checks. |
src/login/hooks/login.ts |
Consolidates provider login hooks around the unified API. |
README.md |
Documents migration behavior and rollout checks. |
package.json |
Upgrades CustomAuth and adds the Babel runtime peer. |
config.ts |
Maps existing provider settings to v22 fields. |
Review effort: Balanced
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
Upgrade
@toruslabs/customauthfrom 20.4.0 to the latest published v22 release, 22.3.3, and migrate the integration across its breaking API changes.triggerLoginandCustomAuthLoginParams.groupedAuthConnectionIdandauthConnectionId.nameidentity field and the existingjwtsession provider label.finalKeyData.privKey, the existing callback, and service-worker-free redirect behavior.@babel/runtimepeer, update the lockfile, and document rollout requirements.Validation
src/login/torus.test.tsandsrc/login/adapters/privatekey.test.ts).tsc --noEmit --incremental false).yarn buildsucceeds (local token-database initialization errors were logged during prerendering).git diff --check.Rollout notes
Upstream releases: https://github.com/torusresearch/CustomAuth/releases