Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Web3Auth React Native SDK Examples to v8 #1283

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ihsraham
Copy link
Collaborator

@ihsraham ihsraham commented Nov 6, 2024

Motivation and Context

Jira Link: https://toruslabs.atlassian.net/browse/DEVREL-1080

This update brings our React Native examples up to date with the latest Web3Auth SDK v8. Key changes include:

  • Migration from OpenloginNetwork to Web3AuthNetwork
  • Addition of mandatory privateKeyProvider parameter
  • Updates to connection status checks using connected property
  • Integration of react-native-quick-crypto
  • Updated authentication URL patterns

Description

  • Updated dependencies in package.json
  • Replaced OPENLOGIN_NETWORK with WEB3AUTH_NETWORK
  • Added privateKeyProvider to Web3Auth constructor
  • Updated connection checks to use web3auth.connected instead of privKey
  • Added react-native-quick-crypto integration in globals.js
  • Updated redirect URL pattern to use /auth instead of /openlogin
  • Updated both Bare React Native and Expo examples

How has this been tested?

  • Tested login flow in Bare React Native example
  • Tested login flow in Expo example
  • Verified provider initialization and connection status checks
  • Tested both Android and iOS builds
  • Verified quick-crypto integration
  • Tested with multiple login providers (Google, Facebook)

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-modal-quick-start ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
aa-no-modal-example ❌ Failed (Inspect) Nov 6, 2024 8:32am
aa-no-modal-quick-start ❌ Failed (Inspect) Nov 6, 2024 8:32am
auth0-google-aggregate-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
cognito-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
cosmos-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
custom-jwt-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
discord-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
evm-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
evm-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
facebook-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
firebase-google-aggregate-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
firebase-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
google-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
immutablex-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
multi-chain-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
nextjs-no-modal-quick-start ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
nuxt-modal-quick-start ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
nuxt-no-modal-quick-start ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
pnp-modal-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
polkadot-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
polymesh-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
rainbowkit-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
rainbowkit-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
react-modal-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
react-no-modal-quick-start ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
server-side-verification-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
sign-protocol-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
solana-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
starkex-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
starknet-no-modal-example 🔄 Building (Inspect) Visit Preview Nov 6, 2024 8:32am
sui-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
telegram-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
telegram-no-modal-server ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
tezos-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
ton-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
tron-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
twitch-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
vanillajs-no-modal-quick-start ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
vue-no-modal-quick-start ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
wagmi-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
wagmi-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
web3auth-pnp-examples ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
worldcoin-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
xmtp-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
xrpl-no-modal-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 8:32am
10 Skipped Deployments
Name Status Preview Comments Updated (UTC)
angular-modal-quick-start ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
angular-no-modal-quick-start ⬜️ Ignored (Inspect) Visit Preview Nov 6, 2024 8:32am
aptos-no-modal-example ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
custom-authentication-modal-example ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
nextjs-modal-quick-start ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
react-modal-quick-start ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
solana-modal-example ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
vanillajs-modal-quick-start ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
vue-modal-quick-start ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am
xrpl-modal-example ⬜️ Ignored (Inspect) Nov 6, 2024 8:32am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant