"@web3auth/react-native-sdk": "^7.0.1",
"@web3auth/single-factor-auth-react-native": "^2.1.0",
“react-native”: “0.71.6”,
I use these version
this is my code
const LoginwithEmail = async () => {
try {
const loginRes = await signInWithEmailPassword();
console.log('loginRes', loginRes);
const idToken = await loginRes.user.getIdToken(true);
console.log('Firebase ID Token:', idToken);
const parsedToken = parseToken(idToken);
console.log('parsedToken', parsedToken);
const verifierId = parsedToken.sub;
console.log('verifierId', verifierId);
const response = await web3auth.connect({
verifier,
verifierIdField: 'sub',
verifierId,
idToken,
});
console.log('now web3auth iss after connect', response);
const provider = response.provider;
console.log('providerproviderprovider', provider);
if (!provider) {
throw new Error('Provider not initialized');
}
// Use ethers.js to interact with the provider
const ethersProvider = new ethers.providers.Web3Provider(provider);
// Get the wallet address
const signer = ethersProvider.getSigner();
const walletAddress = await signer.getAddress();
console.log('Wallet Address:', walletAddress);
// Get the private key (Sensitive! Handle with care)
const privateKey = await provider.request({
method: 'private_key',
});
console.log('Private Key:', privateKey);
props.navigation.navigate(routes.verifyEmail, { email })
} catch (e) {
console.log('error login', e);
}
};
this code is work fine when i open Debuger on chrome
but this is not working on when i off debuger or release mode
const web3auth = new Web3Auth(EncryptedStorage, {
clientId,
web3AuthNetwork: 'sapphire_devnet',
uxMode: 'react-native',
manualSync: true,
});
i got this error when i off debuger mode
error login [Error: Unable to resolve enough promises.
errors: , , , ,
predicate error: Insufficient number of signatures from nodes, required: 3, found: 0,
4 responses,
responses: [{“jsonrpc”:“2.0”,“result”:{“keys”:[{“index”:“5a9”,“key_type”:“secp256k1”,“public_key”:{“X”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“Y”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”,“SignerX”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“SignerY”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”},“threshold”:“1”,“verifiers”:{“flashemailpassword”:[“nTlGX49tdKYBaNLwhiXZrBaJdHl1”]},“nonce_data”:{“nonce”:“ec4d9a90a3f34283f02f85d2962e9770d7e7e3513f9720004492374a94887b5c”,“pubNonce”:{“x”:“483baaaf3e2e25d0fa053d8bc11138a5368931aace8eaf4c0d158f0b63492221”,“y”:“c5549611ace57c040bfd2128d10a126ab571af1778609c4a241182f03dfec6ea”},“seed”:“”,“upgraded”:false},“share”:“MDFjYmUyMjdlMzBiNDc5ZWExNDdkODY3MTBmYjg4MDUzNDdhZTgzNTkzZjQzZGZhMzQ1YjI3NGYzZDFmMjU3NjdiOTg3M2QyYjM0YzFiZGEwMGMzYWE2ZTMzYWFiMDc5”,“metadata”:{“iv”:“b0ca8dc5c7e8027ab47a7aac69d71d85”,“ephemPublicKey”:“04af8371620198472e5d9ffcb605fea31e37e410d43987f3b8023f645915a27f1e4fb86870d02b543735c368a718c6d2915a7c48e7eda4b0335807bde230527495”,“mac”:“2e7dfef52d88e18073a7f6ef9a560a4db427d3076dc10f36c0b17219528d245c”,“mode”:“AES256”},“share_metadata”:{“iv”:“b0ca8dc5c7e8027ab47a7aac69d71d85”,“ephemPublicKey”:“04af8371620198472e5d9ffcb605fea31e37e410d43987f3b8023f645915a27f1e4fb86870d02b543735c368a718c6d2915a7c48e7eda4b0335807bde230527495”,“mac”:“2e7dfef52d88e18073a7f6ef9a560a4db427d3076dc10f36c0b17219528d245c”,“mode”:“AES256”},“node_index”:“1”}],“session_tokens”:[“4eebfb52f34010df9e7413a0e60a74473fea88d121114395702407d501785567485d746f78424298cd46e776d7d9cc7b8840cd49ece75f012fb5c23b4c4940ce6026232c7f902de395f1c5a4128592ff2004f4d87b2b54966dd5dfa98b2a0d4760638bd6c218050feb566bf0be1fd3ea09093de0af9b4b21c360641447413988bc720c433f1cb47c5f69249f6f11e6eef95f759ceb1276707916b9f1ba9d1402c23d0ff42d585f8bff3d922d755cb22fbde174b9085329e56401530a2b8903c86cfedca012f85309f861049f6eca7a13cf32db79f160b8addbc3a11e6b48a2527e784a7077d14a7addd228bc0c6101cdc3f5fbd217d1ccf9131140e6cd99a960b92e1d130f956b8940d6f8e5eb41f9857413471c08c2145ee3066fdb006c6c9936e08453a8a3ac85cd90746d98e5ff233c920ed032526d319db6812de5baa75a86d5d2d3a195ac9eae060018f207692449a7ed549a3c3098dcc8df2d5611738828c108c4e7af3c8f2698e9085c03d7ae219eeaa2fbf79c5f69b36e905346784b00cb5e7b97f8cbac3d34679dac949721b0f5fc7c6226aa07a44f492e8b784b3ff041096857587f85c6cf69662c6885ea”],“session_token_metadata”:[{“iv”:“02b6b4d6b3e32af3f763cdf2ca5dc658”,“ephemPublicKey”:“04ed96e215e3cb0919e7192b966472e7431b6ac3faeae3bba96ffbd18aab001a911bcd4ad00eb4c0bfa605a11b9698cb28ad98e9e5e3515f1fb5dc715af99b9cb4”,“mac”:“bd4ff9bf99548645d46306fdd4086945d4d6ca549979352959115b410ddc0b64”,“mode”:“AES256”}],“session_token_sigs”:[“dace801a8a67ccf581354a8f0a0e9e2644e31f80b6c63d54f26aac44347451d3f8eb4adc58c45d3ce065651489647dce738e39aa00d7b6893facc9e90ffe1ee6b009d1c52f2c74c46b81093907480ade”],“session_token_sig_metadata”:[{“iv”:“51b5339d7b9e2e2acb5a84caf2483058”,“ephemPublicKey”:“044aed90cff0b144915cef704df406e537b1214690bb37f35dc33da2bf87633f90a14ef6c0847dc2fae5a38a4a8036bfcb73e80dd46bce15b8dca484b77b01e6aa”,“mac”:“1bb1dae090a8c690873b6f8f3feb2e7646e77e54011327faeab14f62f19e9f62”,“mode”:“AES256”}],“node_pubx”:“f74389b0a4c8d10d2a687ae575f69b20f412d41ab7f1fe6b358aa14871327247”,“node_puby”:“54e3a73098ed9bced3ef8821736e9794f9264a1420c0c7ad15d2fa617ba35ef7”,“is_new_key”:“false”,“server_time_offset”:“1”},“id”:10},{“jsonrpc”:“2.0”,“result”:{“keys”:[{“index”:“5a9”,“key_type”:“secp256k1”,“public_key”:{“X”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“Y”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”,“SignerX”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“SignerY”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”},“threshold”:“1”,“verifiers”:{“flashemailpassword”:[“nTlGX49tdKYBaNLwhiXZrBaJdHl1”]},“nonce_data”:{“nonce”:“ec4d9a90a3f34283f02f85d2962e9770d7e7e3513f9720004492374a94887b5c”,“pubNonce”:{“x”:“483baaaf3e2e25d0fa053d8bc11138a5368931aace8eaf4c0d158f0b63492221”,“y”:“c5549611ace57c040bfd2128d10a126ab571af1778609c4a241182f03dfec6ea”},“seed”:“”,“upgraded”:false},“share”:“ODNiZjhhYzJkZmEwMmQwZWJjMWEyNTMxODAzODJlMjY3MTQ2N2Y2ZmQwNWIwZjlhNTZjNTRmNmQzMGY0ODY4NzNjY2E4NzU2NDdiZWM3NGM4NjBjNzNiNTRhYzA1YTZl”,“metadata”:{“iv”:“85733e00ecb7b3157d6011cdaab0f64b”,“ephemPublicKey”:“04a91525e69df81ea67989b514533aa4658a9228bf02a5624c01511bba832f7817485f27468093d36dbc99f949d04c52fc7f3b2b7d94d313165d2689b702d010c8”,“mac”:“38eb5a1bd72a7b5a91540f5db3fe2b61147d4873b3b7bfa4847e878bef8f78a1”,“mode”:“AES256”},“share_metadata”:{“iv”:“85733e00ecb7b3157d6011cdaab0f64b”,“ephemPublicKey”:“04a91525e69df81ea67989b514533aa4658a9228bf02a5624c01511bba832f7817485f27468093d36dbc99f949d04c52fc7f3b2b7d94d313165d2689b702d010c8”,“mac”:“38eb5a1bd72a7b5a91540f5db3fe2b61147d4873b3b7bfa4847e878bef8f78a1”,“mode”:“AES256”},“node_index”:“2”}],“session_tokens”:[“3608339789d4e9dfe86c662cb8738b9d793a6a3ff5c2f2f46258ad9da5d95e7986ddf77f386b7c01cb013ca7be6b3eb3fcff953c70c52fed2fb222857313c88d5a90fdc3005f30a84e12c8a40313f386a00e7ef020402fcb0dd4dec9ad4331238d001bf12ea81ef883e35e581bf33ca5149572864e67d760af9e9f4201e0db764a06678be1b66c697bb78848d8018d006b2aef0243ae9d1af9d821a2289c8d2c16398ab8bf3b37c34e627b78c838af1659527c916728bb5fa916bfef819a273280142299f8a3398b147fbfe45d7f2ef3ce32e8e06271d999e49889bd3558f0f141cd47ce06877312f65e7b0224496671f4196e28eeed7254cd130571a4995cd4dec68fe696461d79abd169a1e208554ffb01c4ffbb2a607a10ffe94d732ccd988cd4b2c16fe1f4bc7bc9818218f61bd160109d2ee7f65f2763f545cf9cafccbccb5c70bba1719ad8719c1f876f3c09ce7e0b11d797fb14ad30f39ba8a4d2b26cd5d752a8cc0fb703310c69cdc2b07eef30e9ec5991ad66fd573252f8e365bcf5bd22279e348d913f2e0d321b6957fea7bb0cceec354f38c6b66f6601799f272fd75e547463d858ad6374c12267eb7c3d”],“session_token_metadata”:[{“iv”:“4a53daa1dbb724bed009650b244b3471”,“ephemPublicKey”:“04953236d59d9afc46dfd6077e7b5874ad61ff7de85248fcaf99ee2f6912099aa5872883b3ec3c3e5da09616ec941012782328d670af6b0d0b588e47caeed491a0”,“mac”:“a3ea5f1b4cddd23bc20a0119e18674ba853359d8df4eab3574e02dc7c2a106b5”,“mode”:“AES256”}],“session_token_sigs”:[“8a3973d8cd219e382066f320d77735504f6c690b15ff49c4517e7c44b9ab8e3f039a2ee49d5ce315f544bd9ce7b5b5569657d946ea783a2523142f902e0ef99704801949bf5ab63771eab0b92eac9398”],“session_token_sig_metadata”:[{“iv”:“85dfa9a96566baa22416de9407aff2b6”,“ephemPublicKey”:“04ec9eebc9f51e72722613663baca7cf2897981e615344da247553a7d2d24a956b3df8986fae722c6e33df918dda8764fc3edb1bebddf2d9501edb6e69551f0ff8”,“mac”:“a1421a93b71fa8fc46571860d8238bccbeeb9c29ccb8154b500fb05ab76c4b7d”,“mode”:“AES256”}],“node_pubx”:“bc38813a6873e526087918507c78fc3a61624670ee851ecfb4f3bef55d027b5a”,“node_puby”:“ac4b21229f662a0aefdfdac21cf17c3261a392c74a8790db218b34e3e4c1d56a”,“is_new_key”:“false”,“server_time_offset”:“1”},“id”:10},{“jsonrpc”:“2.0”,“result”:{“keys”:[{“index”:“5a9”,“key_type”:“secp256k1”,“public_key”:{“X”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“Y”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”,“SignerX”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“SignerY”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”},“threshold”:“1”,“verifiers”:{“flashemailpassword”:[“nTlGX49tdKYBaNLwhiXZrBaJdHl1”]},“nonce_data”:{“nonce”:“ec4d9a90a3f34283f02f85d2962e9770d7e7e3513f9720004492374a94887b5c”,“pubNonce”:{“x”:“483baaaf3e2e25d0fa053d8bc11138a5368931aace8eaf4c0d158f0b63492221”,“y”:“c5549611ace57c040bfd2128d10a126ab571af1778609c4a241182f03dfec6ea”},“seed”:“”,“upgraded”:false},“share”:“N2YyNjNkNjdjNTk5NDk4M2E0Zjk4MGQ3Mjc0NWQ5ZmY5YzY5NjkwN2Y5Zjk3ODQ1MzRlNWIxOGYwZTRiZDllY2NmYWM0Zjc5OTFlNzgyMGQyZTQ0YWUzNDUxODY1ODRk”,“metadata”:{“iv”:“dce7268de8fae716c7ef92e19919b84d”,“ephemPublicKey”:“04d6b13429e33a66b2f0cffede29630f6de11613e28c9a68eb907b2fd112e84addac4119cb8978b0c4b3d80d5cdba5a0b853f8297949d6b25dccb6a2c5d6da3746”,“mac”:“a108c819924da2081cc7de45f487411d92ca04009c522c2460feb414449cccfd”,“mode”:“AES256”},“share_metadata”:{“iv”:“dce7268de8fae716c7ef92e19919b84d”,“ephemPublicKey”:“04d6b13429e33a66b2f0cffede29630f6de11613e28c9a68eb907b2fd112e84addac4119cb8978b0c4b3d80d5cdba5a0b853f8297949d6b25dccb6a2c5d6da3746”,“mac”:“a108c819924da2081cc7de45f487411d92ca04009c522c2460feb414449cccfd”,“mode”:“AES256”},“node_index”:“4”}],“session_tokens”:[“f8e991ad991ae4e5f93a95ea9e6d0bd206a4e9785c62fe29d2b92b7e7585976fbad9d5708c3c67d7b14adc6e7f6321a4d12f75b6db8513652e6f40fb3bcf7a7137ef81d528d4930b051494f13fa21e12e5332edad2fb59b11504d1761fb0ad64c6391a37a1d78a5e1606a260e96687471049dd6b2cc160646e244f0830ee0f1c34e229ee7648ac1fba23bd72d533bf372b780a20c781db5139660ffae1ceb45c7df55cf5d32d9eb034279e5e1da02d400edbb9e041961ee40c1702ad1cc19f9f3e0a6f98115d6551f4111e87308032b22107d3185af8177c43fee1d8d3b03e4e6c1231daae46bcc2dd52d520c7b7e3b5d2c3ae545d0eee71fa94c869b11ca331f9f5d73b6de600fa5eaeab8640f76fe6ed209b81e8095621ddef31a1e68b6e4393d22d811d947fb1589d6264c5578e5c5119f783102d5b6052c541679ef76e55dba45a48b2c2c6bc22e105ecf86bb7628c9748f6d7b879546bcadfe65227eb5d3b581cb3a7b653b7667fa8c82e9effd890ed10dafc032b38f13aed3e77a57a1dbacbc8e64b8649e439d11ce5d3adcf97654f17d52233ef1fb55c40e17698e8b7b01de3d9deb5d4c524289a62fbefdea6”],“session_token_metadata”:[{“iv”:“4d4e517256631b339029d38b5bb2a319”,“ephemPublicKey”:“04d47edca5b96c83acee584e5f487481fe9c0910321f72e73e146fa34ae0bce198efe7f26c1ec6b672359cac7e5093455f2adb871939e7458cd1b9b3b4da05ec42”,“mac”:“5d09329d725edde05012696cdddb896925cb1f96dbdd51922f8aa5f3eeed736b”,“mode”:“AES256”}],“session_token_sigs”:[“e55bda0270bcfb4e9b267aeec59d528a2bf27dfa0a4d881b18fd327b18915b48edac017fa90c87bec6025bf64c3c54c16fd61901a6a130081e4e5a631ba4a8d7b63c3ff89037605066023f6e11df6d87”],“session_token_sig_metadata”:[{“iv”:“34ddc562f7674a4c4660fc5667dbd5f1”,“ephemPublicKey”:“04976b4e103307eba61cf004e44c399dcec6f0af2ab9aa9cdd49492a0c7205076f5a2f37959fcffdebeb90a64cfd61fd6ee25fa747b1c7167456340638f99adeda”,“mac”:“6cc59d9a5ae9073d48475ebf556047408341378258a4bf2f1b7abf189c97fbce”,“mode”:“AES256”}],“node_pubx”:“7bcb058d4c6ffc6ba4bfdfd93d141af35a66338a62c7c27cdad2ae3f8289b767”,“node_puby”:“336ab1935e41ed4719e162587f0ab55518db4207a1eb36cc72303f1b86689d2b”,“is_new_key”:“false”,“server_time_offset”:“1”},“id”:10},{“jsonrpc”:“2.0”,“result”:{“keys”:[{“index”:“5a9”,“key_type”:“secp256k1”,“public_key”:{“X”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“Y”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”,“SignerX”:“fa9567513f9a2032306e3015b1d93cb02e37310dc5963fb4349f450066c79550”,“SignerY”:“56b702a387c98f4dba02cd6c819ab206db7b9747e16870c3128b843d6d3ca136”},“threshold”:“1”,“verifiers”:{“flashemailpassword”:[“nTlGX49tdKYBaNLwhiXZrBaJdHl1”]},“nonce_data”:{“nonce”:“ec4d9a90a3f34283f02f85d2962e9770d7e7e3513f9720004492374a94887b5c”,“pubNonce”:{“x”:“483baaaf3e2e25d0fa053d8bc11138a5368931aace8eaf4c0d158f0b63492221”,“y”:“c5549611ace57c040bfd2128d10a126ab571af1778609c4a241182f03dfec6ea”},“seed”:“”,“upgraded”:false},“share”:“NDhkNGMzMTgxZGEwYjUwNWVjMGQwYTQ1NGQxYWI4ZTdlOTYzMjc5OTEzNDdhYmM0NDc2NzUwYjI0NTM4NTZiNzQzNWMzMjVlM2IwNTFkYmFhNWMwNmMyYjYwNjNmMzRk”,“metadata”:{“iv”:“bf3e95ea989abcb73551ee8957f1722a”,“ephemPublicKey”:“047cd1fc0564407be30ea8e30f47e877a7002f9633fc17393119ac4f4d283e6531b80c81d01f7e02ff8a76604870c30efb65fa10f70fa9f695c2066539c1488e57”,“mac”:“a10f2aad589a009bbe8a6f93e3c3151852ade2d30c6f963ee7e74b4ab191b6f5”,“mode”:“AES256”},“share_metadata”:{“iv”:“bf3e95ea989abcb73551ee8957f1722a”,“ephemPublicKey”:“047cd1fc0564407be30ea8e30f47e877a7002f9633fc17393119ac4f4d283e6531b80c81d01f7e02ff8a76604870c30efb65fa10f70fa9f695c2066539c1488e57”,“mac”:“a10f2aad589a009bbe8a6f93e3c3151852ade2d30c6f963ee7e74b4ab191b6f5”,“mode”:“AES256”},“node_index”:“5”}],“session_tokens”:[“22cd4f7a0769903ae68f29c08cf711340055b8bb32b56c5f957e952885143ae3aa2aa2d0aff98fb91d90c5201b4bb4349c9084b2a34e5a49c86e74eb59cd689afa50a8d2d5fcdc0e2840ed3bb0d4b36f6d117ff4ea67f0adb3a1778952279d8b9b96a12c1d40a89536d5865c9caed431d009d050d220cc197b1689d469e1058ad837654409e7bad7363f57e4f079dc37acaca157ffb17e6d8801f504c92cca83c2ffc8256145ed5ac2b3518cf4e0d3f742c7611f68bc0451ca50578db1e653d79e9c58d147c2a3e167692de227137b4e53ec32952313c6d52d810f78c9c649df17b181d89d212e49b62474ea0c8229e1960d194e9b4005166a59270edac05a1baf228f77df8a13a19869d0fb58742220824d188f0c3bb9284cffbd9e87edb18f383543611e7736323492d1958fcdb3e78ea4077076b95934f39509f3e59835b7a3756fb5e7ac9bf7947d67b049d080eeace37f91a39df5acfe88456376ac9a95fb8e4f67df5886033f7009de9f2295cc276ace585630f54f5e4eed1b84c80f7e7a13304038ce380010539d3f258892dc52cf0adc726808da2d1f585e3b30fae50389258783e6095d206d8204dc1c0a3b”],“session_token_metadata”:[{“iv”:“774e0e4cd08e7b3738a706baf8bdc52b”,“ephemPublicKey”:“0439dde014f51b84ba0479821ee5e85a170012c90dbf0d51aa0c7ed6728dc09afd638e459c4b8a718b267c5298717c3668342bc66d25af2440e22ffc73956cc9a7”,“mac”:“f0159c02086a8c8eed9a93e9e58c74be1bfa8ec74709c3b469b2c54a15d3326a”,“mode”:“AES256”}],“session_token_sigs”:[“822230112aefacfcbe1713066a6e103a0ac2937340276cad69669b030fc28c860fbb143d493999e9f642f3873195281e51fc94810d0921d4055b7fdd525389d40ab85d91356ec9c57a87464f578e0a76”],“session_token_sig_metadata”:[{“iv”:“4186cbc7b1a98c2c68b6e32f27c6ca3d”,“ephemPublicKey”:“0445222596e0611fbe58ce9d11917a20a4e692b6cda6137fbcda83a4d98b4ea9384c195f149a50ec8d3cff61b6718e185c50cf88e4dd69d9aebed681592cbc3640”,“mac”:“f2391276b31d8c0f3296078d132407255ff6849a4e6b6da135040a085184686e”,“mode”:“AES256”}],“node_pubx”:“bf12a136ef94399ea098f926f04e26a4ec4ac70f69cce274e8893704c4951773”,“node_puby”:“bdd44828020f52ce510e026338216ada184a6867eb4e19fb4c2d495d4a7e15e4”,“is_new_key”:“false”,“server_time_offset”:“1”},“id”:10}]]