@@ -9,21 +9,21 @@ import {
99 TextInput ,
1010 View ,
1111} from 'react-native' ;
12- import { useEffect , useState } from 'react' ;
1312import Web3Auth , {
1413 IWeb3Auth ,
1514 LOGIN_PROVIDER ,
1615 OpenloginUserInfo ,
1716} from '@web3auth/react-native-sdk' ;
17+ import { useEffect , useState } from 'react' ;
1818
19- import { ChainNamespace } from '@web3auth/react-native-sdk' ;
19+ import { ChainNamespace } from '@web3auth/react-native-sdk' ;
2020import EncryptedStorage from 'react-native-encrypted-storage' ;
2121import RPC from './ethersRPC' ; // for using ethers.js
2222
2323const scheme = 'web3authrnbareexample' ; // Or your desired app redirection scheme
2424const resolvedRedirectUrl = `${ scheme } ://openlogin` ;
2525const clientId =
26- 'BHr_dKcxC0ecKn_2dZQmQeNdjPgWykMkcodEHkVvPMo71qzOV6SgtoN8KCvFdLN7bf34JOm89vWQMLFmSfIo84A ' ;
26+ 'BFuUqebV5I8Pz5F7a5A2ihW7YVmbv_OHXnHYDv6OltAD5NGr6e-ViNvde3U4BHdn6HvwfkgobhVu4VwC-OSJkik ' ;
2727
2828const chainConfig = {
2929 chainNamespace : ChainNamespace . EIP155 ,
@@ -44,7 +44,7 @@ export default function App() {
4444 const [ key , setKey ] = useState < string | undefined > ( '' ) ;
4545 const [ console , setConsole ] = useState < string > ( '' ) ;
4646 const [ web3auth , setWeb3Auth ] = useState < IWeb3Auth | null > ( null ) ;
47- const [ email , setEmail ] = useState ( 'yash @tor.us' ) ;
47+ const [ email , setEmail ] = useState ( 'hello @tor.us' ) ;
4848
4949 const login = async ( ) => {
5050 try {
@@ -209,7 +209,7 @@ export default function App() {
209209 const init = async ( ) => {
210210 const auth = new Web3Auth ( WebBrowser , EncryptedStorage , {
211211 clientId,
212- network : 'testnet ' , // or other networks
212+ network : 'sapphire_devnet ' , // or other networks
213213 useCoreKitKey : false ,
214214 loginConfig : { } ,
215215 enableLogging : true ,
@@ -303,7 +303,7 @@ export default function App() {
303303 onChangeText = { text => setEmail ( text ) }
304304 value = { email }
305305 // eslint-disable-next-line react-native/no-inline-styles
306- style = { { padding : 10 } }
306+ style = { { padding : 10 } }
307307 />
308308 < Button title = "Login with Web3Auth" onPress = { login } />
309309 </ View >
0 commit comments