SFA JS SDK: Predicate error: Insufficient number of signatures from nodes, required: 3, found: 0,

I’m encountering the error in the title consistently while using the SFA JS SDK combined with Firebase.

  • Tried different networks (different local networks, SAPPHIRE_MAINNET and SAPPHIRE_TESTNET)

  • Tried it at different times

  • Fails consistently (not one-offs)

  • SDK Version:

    "@web3auth/base-provider": "^9.4.4",
    "@web3auth/single-factor-auth": "^9.2.0",
eyJhbGciOiJSUzI1NiIsImtpZCI6IjNmZDA3MmRmYTM4MDU2NzlmMTZmZTQxNzM4YzJhM2FkM2Y5MGIyMTQiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vY29tZXQtN2FhZjAiLCJhdWQiOiJjb21ldC03YWFmMCIsImF1dGhfdGltZSI6MTczMjgwODU2MCwidXNlcl9pZCI6InJrbUVXdjFWRVNocnZ2MVlsOWVNN0hHNmllSDIiLCJzdWIiOiJya21FV3YxVkVTaHJ2djFZbDllTTdIRzZpZUgyIiwiaWF0IjoxNzMyODA4NTYwLCJleHAiOjE3MzI4MTIxNjAsImVtYWlsIjoiYmFuYW5hQGV4YW1wbGUuY29tIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJmaXJlYmFzZSI6eyJpZGVudGl0aWVzIjp7ImVtYWlsIjpbImJhbmFuYUBleGFtcGxlLmNvbSJdfSwic2lnbl9pbl9wcm92aWRlciI6InBhc3N3b3JkIn19.q9RnmaSP2ma_JYElHmwi9xFDCYwEG6eScS4fYNzr_WSyXm56lf2sPjUqSCsDvBt2_9vDq6Ju4Dv-dFi1AJgSKrK_eYNvys_rNWwjnpdngDVj3RJ-XR8VTB8FS0tlbGDR8H116NwfMHcMvFHDzCcEe74eaX-OGdJYo6Xlp2QzrCouROaaoPgkfOB5DQ13BdsBneD8nO7QmTVTm3aCz4BCxHBClMHme7j-84rEhyf0VYXUnBmHVcZE4tuSPbciLjLgS_ejWF0kS1IcG-hqFDmujo4B3b-LqgK5AiOpeSBdiQjrFrZUhgGnEfjCNhnkJ5ScaR-oLgAYAOBEu0K-4D8aZw
  • Initialization:
import { CHAIN_NAMESPACES, WEB3AUTH_NETWORK } from "@web3auth/base";
import { CommonPrivateKeyProvider } from "@web3auth/base-provider";
import {
  SDK_MODE,
  Web3Auth,
  Web3AuthOptions,
} from "@web3auth/single-factor-auth";
import * as SecureStore from "expo-secure-store";

const clientId = process.env.EXPO_PUBLIC_WEB3AUTH_CLIENT_ID ?? "";
const chainConfig: Web3AuthOptions["chainConfig"] = {
  chainId: "0x1",
  chainNamespace: CHAIN_NAMESPACES.OTHER,
  rpcTarget: "https://api.testnet.solana.com",
  tickerName: "Cardano",
  ticker: "ADA",
  decimals: 6,
};

const privateKeyProvider = new CommonPrivateKeyProvider({
  config: { chainConfig },
});

const web3auth = new Web3Auth({
  clientId, // Get it from Web3Auth Dashboard
  web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
  storage: SecureStore,
  mode: SDK_MODE.REACT_NATIVE,
  privateKeyProvider,
  usePnPKey: false,
});

export { web3auth, privateKeyProvider };

Usage:

  const login = useMutation({
    mutationFn: async ({
      email,
      password,
    }: {
      email: string;
      password: string;
    }) => {
      const result = await getAuth()
        .signInWithEmailAndPassword(email, password)
        .catch((error) => {
          console.error("Error:", error);
        });

      const idToken = await result?.user.getIdToken(true);

      if (!idToken) {
        console.error("No idToken");
        return;
      }

      const parsedToken = decodeToken(idToken);
      const payload = parsedToken.payload as TokenPayload;
      console.log("Using payload.sub to log in", payload, idToken);

      await web3auth
        ?.connect({
          verifier: WEB3AUTH_VERIFIER_ID, // e.g. `web3auth-sfa-verifier` replace with your verifier name, and it has to be on the same network passed in init().
          verifierId: payload.sub, // e.g. `Yux1873xnibdui` or `name@email.com` replace with your verifier id(sub or email)'s value.
          idToken,
        })
        .catch(console.error);

      console.log("connected");
    },
    onSuccess: () => {
      setIsLoggedIn(true);
    },
  });

Full issue:

console.js:589 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":"11cb","key_type":"secp256k1","public_key":{"X":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","Y":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb","SignerX":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","SignerY":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb"},"threshold":"1","verifiers":{"firebase-comet_1732798173":["rkmEWv1VEShrvv1Yl9eM7HG6ieH2"]},"nonce_data":{"nonce":"b0bd0bca838cc4526d5e2578ac651115c13ccd380fc2328891ec0a07b7595b0a","pubNonce":{"x":"5d421f68da4ca50e64d9a33bebb1b807696fa7d316a596032645bf38ab557125","y":"6f2ec55b2c77422b3fe4a45f3bcb06116feb144a8cb553c428388c0083d97889"},"seed":"","upgraded":false},"share":"NTFjMjZmNmE0MjgyNTMzM2IyZTU3YzI2OTg3NzM0NGNmOTgwOTBkNzdmODlmOTUwZTdiMjk3NGIwYzFjM2VjZWJjMTcyNjQ5OTkxYzFjOTExNDdiNDMzNzcyNWMwODJi","metadata":{"iv":"4757a2f674172adc661796dd84a7906c","ephemPublicKey":"04e464d392227e476e5912d1f0804479182cf4854a0108212964d668472325bd1435217f8ee26bb6233de81dc537fff26e1902d0dedcc36cbb82a84a9d0fa49331","mac":"22bab23f62454a4d530b778f5dd07ccd066133cc194f509aa8d9363ab7c18f37","mode":"AES256"},"share_metadata":{"iv":"4757a2f674172adc661796dd84a7906c","ephemPublicKey":"04e464d392227e476e5912d1f0804479182cf4854a0108212964d668472325bd1435217f8ee26bb6233de81dc537fff26e1902d0dedcc36cbb82a84a9d0fa49331","mac":"22bab23f62454a4d530b778f5dd07ccd066133cc194f509aa8d9363ab7c18f37","mode":"AES256"},"node_index":"1"}],"session_tokens":["23aa7815e2afa68b9d1be89fcb8a09a35ceb5fce6bc034f6940ce3f4f40de7b145237ca54ea65f367d9386a97ed6494cab8aa3b7e42b4bea955fd1e42350ac4de8fa3b6cb7062903790bacd16463348e437aefdf0faa34f4a94d47d8ea9be1199824386b7dafa24bb770a8493486715510db343a8c6cc4727d241e1f01b65cb3518092e11ab9fcfa1619d4f7bfdfb20952f6e8c0ab0116b2b71ca2bc7ebb5df29a326125b88d2d2db8cd285ecf33faf109e1f5dbb4b780117dc64f0646f2aca4ead8c433d64c84aba51df359e1e47778b0ad341c3e06b728d111c537dc8f88e416d7d2d12978c28b927bbbd77596769caaf0d61ce3a63ff51b943e7e23b4f2b89d009c81fa62a9b5a2586b519ce4d35e85f5266e54641b33265363444388b8797cf9abcf5c625ab055e8a14295d07759105c5e54dda2cfa1773d9fab0a39f32274c429f012eae8cee223d52d5096fa220fe02f6973851b64190164b0b254d53f891e31d7a9a50333bc3d8395385f428bdead7878957a97b91105a28787f204babcf41ad452dc4d3e44fa38d50c328d53296d6de81fdefe6cf4f2cf98a953e14d5a226339b917ba7cc3df27cdcebe98784bf1058c675f0daf83ec7527923517c1"],"session_token_metadata":[{"iv":"1988d1e9c6dc12547feb473089382736","ephemPublicKey":"0497b4b693daf4062ef9d2c4c424890706be22984d3de68c01b942335785210391b90f1df6ea3f0220b5a0a8109dd2cab4b5f032ac2797b637a573ccac7f5fae5d","mac":"92dcf5568a9586907e99afd6aa1f17af58f9a68d17b6a6103e8c11e0017ea76d","mode":"AES256"}],"session_token_sigs":["8ba9b18dbd22c0c36e85a3c6b6cac6faabd898c2af5897c8474a2bbc477f40012b3b8b3a3196c0e89002d9150aa95757b3266a5cb5ed11b99e9f07ab1b0b9bca578e5554a2363b0c2b7736c38dc03069"],"session_token_sig_metadata":[{"iv":"f187b57051cdf72d0d7fce7945662214","ephemPublicKey":"0402f62c09e33ebec0d3c21767e6aeb5cd26ed11b259443bc335f6dc18df6d46423d9207093454480c2f820bd0c6681abd42d5568446a4cffd9b2faa6802e0859d","mac":"c8e2270ef4ff9bce2825b5a5426b89e8177ab33ae3bc5e1e0a06f424da620304","mode":"AES256"}],"node_pubx":"e0925898fee0e9e941fdca7ee88deec99939ae9407e923535c4d4a3a3ff8b052","node_puby":"54b9fea924e3f3e40791f9987f4234ae4222412d65b74068032fa5d8b63375c1","is_new_key":"true","server_time_offset":"0"},"id":10},{"jsonrpc":"2.0","result":{"keys":[{"index":"11cb","key_type":"secp256k1","public_key":{"X":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","Y":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb","SignerX":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","SignerY":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb"},"threshold":"1","verifiers":{"firebase-comet_1732798173":["rkmEWv1VEShrvv1Yl9eM7HG6ieH2"]},"nonce_data":{"nonce":"b0bd0bca838cc4526d5e2578ac651115c13ccd380fc2328891ec0a07b7595b0a","pubNonce":{"x":"5d421f68da4ca50e64d9a33bebb1b807696fa7d316a596032645bf38ab557125","y":"6f2ec55b2c77422b3fe4a45f3bcb06116feb144a8cb553c428388c0083d97889"},"seed":"","upgraded":false},"share":"YmEwM2E5NDQxNjk4YmZkMWNiNzg5ZGZiNTNiN2RiNmY1NTAwOTIxOTRiNDhkYjExYWQzMGY1YzgyODI0YjlmYzQzNTcwZTY2NDJiMGMzZTg0YTM5ZTRlMTAzMDdhYTBh","metadata":{"iv":"1bfa22982cfbe8f9b3dcced4a46262f7","ephemPublicKey":"04028fe56be19ec8655672db850bb159fde5504b3b7ed7bed6437ca6fce3d2f0acc689b69c6cc1881843338016611d1f5162aa6863ea6823ad8b8580fa7692e36c","mac":"f518bb768afeaf5f29f109a98c4f9cbb8e765344a79e89734293fe0a4abceb8d","mode":"AES256"},"share_metadata":{"iv":"1bfa22982cfbe8f9b3dcced4a46262f7","ephemPublicKey":"04028fe56be19ec8655672db850bb159fde5504b3b7ed7bed6437ca6fce3d2f0acc689b69c6cc1881843338016611d1f5162aa6863ea6823ad8b8580fa7692e36c","mac":"f518bb768afeaf5f29f109a98c4f9cbb8e765344a79e89734293fe0a4abceb8d","mode":"AES256"},"node_index":"2"}],"session_tokens":["66995f7eb1c0e675b20c9aeab4ab00fedc2350383770474a09adc5999ed341c158e7386476bcf179601b08567eeed234fa1bd2ad4965b02cedabf1488ad0656d05aa01de94653479b25ce3b3329b54b7a6f2afc88bd54d9e96e2308178c5aa043836b9523d53fc598be073e6505e6826ccb3be3bc1cc3a528633f3b55878cfe02b1824493cdd7441cfd2c7be3766da6c0398e1b0b0868b6c262b875c0acf3944c0044798b94b2d256c791c41a493d901025a8ca5eac4270afdaf68abf2e5094a5408e24512d0d5b28efb1e94b8e893cfecec3dec65d9fd296f5f96e3e78a84b80bff1ebaa0b78b4996777d6c956f3b8db45071a08ba72aba2a6b4340c43b448dbe2ea5fcf3102e9a0d3745ce6150dd086f8e1225fe6d879666e61dab6b1b98746da935947c9dc64ee140c2cd1e2b2bdd55739e79f9aa98155d105550c8f9088880b35d7877ee9f523d7c1fc0017ab465becd5b31c3701ea36e04fe66ac22ef640ddc2228163dde7d029bd2fb74caa7f1a7683db68ceba25dfa6d480e8aa22b71ced24d47e005f9813578a2be28657857c77653abbc27fb1939a75ae05fb6e4a0ae7978e649920b546c802052b00f0d3e001735ffe001e4fad16d13ece7ac4d8b"],"session_token_metadata":[{"iv":"637c31fd03fbac7d14d187bd00a83203","ephemPublicKey":"04f21f0a381bc94da8bd4b594b3edab6a79077c7d504a310f4312c39a2241f91ad38405add1d2eb1b9bc63823ba19b24202a3f9af4ccb75394a0ebf642ee4fc87b","mac":"3faaec7ba4c18ca977832dc86040131ecf6466a03f9845ddcc0a2e73097a1546","mode":"AES256"}],"session_token_sigs":["25668dda60e9223327f88f95be7e65466e7eb530b8b87d6d966f2cce131ae38535f39be88bc841de5e0353a50e5a9c88d0849087d112b1922b24d67a547ca6c6a2be2aced115cbeb6b5d981953abb6bc"],"session_token_sig_metadata":[{"iv":"1ef0e0ab318a043864a25564dd84e665","ephemPublicKey":"044196e287758283b5fc028703a7d7acdb2fc62e14abb34747a6aa1e59aab202249acf00c1f7c8fddb41c4573c3f39e21b1bf2b444ece99bd7e8c8a2d7bed37dc1","mac":"6b5f81e0b06ed76e39b49ef94b575a075a656327b771d72e017a2a6fc2223e4e","mode":"AES256"}],"node_pubx":"9124cf1e280aab32ba50dffd2de81cecabc13d82d2c1fe9de82f3b3523f9b637","node_puby":"fca939a1ceb42ce745c55b21ef094f543b457630cb63a94ef4f1afeee2b1f107","is_new_key":"true","server_time_offset":"0"},"id":10},{"jsonrpc":"2.0","result":{"keys":[{"index":"11cb","key_type":"secp256k1","public_key":{"X":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","Y":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb","SignerX":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","SignerY":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb"},"threshold":"1","verifiers":{"firebase-comet_1732798173":["rkmEWv1VEShrvv1Yl9eM7HG6ieH2"]},"nonce_data":{"nonce":"b0bd0bca838cc4526d5e2578ac651115c13ccd380fc2328891ec0a07b7595b0a","pubNonce":{"x":"5d421f68da4ca50e64d9a33bebb1b807696fa7d316a596032645bf38ab557125","y":"6f2ec55b2c77422b3fe4a45f3bcb06116feb144a8cb553c428388c0083d97889"},"seed":"","upgraded":false},"share":"MDNkZDBmMTU2NzMxODI0MTI0ZWRkYmI2MzAxZWI5Y2M2MjBhNGUyNDM0NzNiMDY5NTVlYjkyNmNlZWMwMzlhYWJlMzhjZTQ1YjkxZjQ1OTUwZDNjNjZmYjc4MWZiODE0","metadata":{"iv":"13f7056748286a0364fe3be2ad970028","ephemPublicKey":"0460f5ae5d04ce213c30d508e729be3644fa4b1995c578e4bfae5b82c0653b3e64bb011dda09c138ac2390c988dc18b805e7e4c7373049ea082ad5354dfda7686a","mac":"d5065357a0f0eab3adf88569151bbc908721d893c62abafd4c487a2087f18d75","mode":"AES256"},"share_metadata":{"iv":"13f7056748286a0364fe3be2ad970028","ephemPublicKey":"0460f5ae5d04ce213c30d508e729be3644fa4b1995c578e4bfae5b82c0653b3e64bb011dda09c138ac2390c988dc18b805e7e4c7373049ea082ad5354dfda7686a","mac":"d5065357a0f0eab3adf88569151bbc908721d893c62abafd4c487a2087f18d75","mode":"AES256"},"node_index":"3"}],"session_tokens":["422a7fc6816f457ba8ef5dd5b386fb64f3287f54e2c2dedfa93d81c7d51dccea281127343483920e4a80dc2f14ba58b5871933f7505ea022de582fa268dd1acd00da9bec35d813b79f061bfd24fc694116b4e640baa6be59f32c2702c4e70a3bc62750a30dd82117dc6772ea4ae1ff346a4ac9d651e2510f1ad5e887f714539e939624ee8148941749eb38b5576d933d57240beff01d47b9bc6bec801347ea8c998ce7d57558a45babcce6ce5901d5d8145c5f1081d9b4b7b7d462ac72ae7116b8dceed80e09c87777dee053a8d3656401bc7825bb7cfbee7a65265c5aceb5b03dd8816c521575afedd846c64bea70bd22ee5b8d091650f1e15249b81ee4cb2a5b6f0a7447a3b526136b6fc1921bd3e70e0bbeee3ee0545559ce6ce60e5814d75545e92d001266287418b9cc64cb7d5b50c6cd29df0a2ff1964b46737831c49b9e9712ce7a991a460f4e38cbe1107f7b72f4480b26793fe9827cf33ba5f23c9a6afafd340057428d0e369a4a7db7ade5821f3a75f45c1897b3950a6e243f1f5b491f8ca01e11fc39232b182fb05339d7d13ba7289a0540ca51f0da1eb43ffa76a02f71e27d7307fa7e6b13b7e3f082928866aaab71e01ac8bab1279b24c44030"],"session_token_metadata":[{"iv":"ca364714f4b90b5fea66fc3af014f36b","ephemPublicKey":"0497a7f52bc6b4fe37a2c176bca1e57f4cad315c9ff2f31b51081566a22c6d8a2933c5fbf71979a6384769f4d03d78ad110494803542918244cc57661976e84af1","mac":"58dcd0841726eb2919e98fc0358a24a879dc183fe4889dc767773416381636ee","mode":"AES256"}],"session_token_sigs":["71dc54ffc996c71fb0343f1808c03078d74d8bbfba7c4dcae0be4bab24e3641d3586d54cb0096659b6016bd462597f935873bedf392bd5eb91f0a9abe71c98e7d18f0e0c2ccf21b35017f44693ef0082"],"session_token_sig_metadata":[{"iv":"e071d8ad2dbaea45cf40bd3ac6ee0fe6","ephemPublicKey":"046efec0bd5c104ad79db8a33a30bbea26a1fe7b8936a63baa8b470e6f486a939883ee0e0b752183998d78b999952d9644e2543b100885b1d5e813c94140dd2664","mac":"74e0b3aa9844b302aa0440d40afb726df206e4665eda11b8f071173e35da11a4","mode":"AES256"}],"node_pubx":"555f681a63d469cc6c3a58a97e29ebd277425f0e6159708e7c7bf05f18f89476","node_puby":"606f2bcc0884fa5b64366fc3e8362e4939841b56acd60d5f4553cf36b891ac4e","is_new_key":"true","server_time_offset":"0"},"id":10},{"jsonrpc":"2.0","result":{"keys":[{"index":"11cb","key_type":"secp256k1","public_key":{"X":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","Y":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb","SignerX":"3335f0133ca8c54efe545bacbc63c6fa281e498c974cf882ef32e97e2c7dffda","SignerY":"c98554ebb47ac93c33c534542cf162a3c09b16fd4b877f3dc397dba0bef6a5cb"},"threshold":"1","verifiers":{"firebase-comet_1732798173":["rkmEWv1VEShrvv1Yl9eM7HG6ieH2"]},"nonce_data":{"nonce":"b0bd0bca838cc4526d5e2578ac651115c13ccd380fc2328891ec0a07b7595b0a","pubNonce":{"x":"5d421f68da4ca50e64d9a33bebb1b807696fa7d316a596032645bf38ab557125","y":"6f2ec55b2c77422b3fe4a45f3bcb06116feb144a8cb553c428388c0083d97889"},"seed":"","upgraded":false},"share":"NzE3NjVlZjJmZWY4MjdmZDdjNzI3ZmYxYzUxMzQ4NzAzMWEzYTc1NTE3NmRjOTYwMzhiZWRjZmVlOWUwYzZiN2EwYjQyNTBhMzQ1YTIyOGEwN2ZjM2RjZjEzOWQ4OGQ1","metadata":{"iv":"02fcf080cf5ddef96b6d909e6d0d21bb","ephemPublicKey":"047638f123547678fc7b9358daf06437decacdd151f9ad98918f64d57a9057a1d5df5ff197031f855b378c757ce022bed0506bc4ddf413550e5fc89ab35c933130","mac":"1406a7af6cd0bc5c395303fcbe38f45f89b4de0cc38aa10df2388ae280b2c44d","mode":"AES256"},"share_metadata":{"iv":"02fcf080cf5ddef96b6d909e6d0d21bb","ephemPublicKey":"047638f123547678fc7b9358daf06437decacdd151f9ad98918f64d57a9057a1d5df5ff197031f855b378c757ce022bed0506bc4ddf413550e5fc89ab35c933130","mac":"1406a7af6cd0bc5c395303fcbe38f45f89b4de0cc38aa10df2388ae280b2c44d","mode":"AES256"},"node_index":"4"}],"session_tokens":["655004da26aa99bb932af68505163d01b2df4ad8af9dab6cd1ef17f979631b714d51b47eecc4317d5152d1e50bfdf3c1abb335f84f375208bd0c7ac017fbd06def6d8ff412f17bf7a7f38f5d1edb6ed069cafddfc36bcab0cd12053e4c813e4a1fa29a2660b59685c955933996a2d0a64782cac693d42540d5ae4daa6b3d03f883814a5e88d086f13545dffcdac34217a2a3acef7dd7f415c025a1a85f11e07e5734c3fa7ac68f8cd8c59064eeb85b47d2c236e77caadbd2d3bab0f1eaf815dee60db22fcc5c44cc56500cffbe7539936d153a1adc552dfeaaab9b636562c41fbde7f071baa3f3903620a34805938a4689c03d116f598ba2c260d68a477c6c2632324115dc73661b1b219ddb50b5e27ce88918b0867b99a04b98f208f56f66fad59946c4e4825358ed66dd799a3187eb63175b45dc00b9d0c6d0c0043f198e9f6c1852f2e121a13fab5542290772521c75466888654ced0f31b3b2db4d7ad4013bbdf5f2bf0110da2b1e5b372c00beb9794c53047ce333663b6092f6d70da37825fe4a7c96914176d85e4b28caaf9b01d05aa9c0e279cbf0af53922f5986da170cb1e13830ede50f9debce99999703161d2e81e9d0011b4e05cc95a93a2e7afb"],"session_token_metadata":[{"iv":"e831de87f3ff6460075881934e4890b8","ephemPublicKey":"0448fd937e31cb4c8ffee48d9f49dfa8b82d2a27ae04db42fe8c8350cbfc8a6105ae99b3e11be3041235420c6c64ec772dc4bf11c1cd089cb14c7df02720bed078","mac":"083216b1d68235bb886c1bd2d2fd120b13bbe52e0f1f18ebf2b0ec4d3c5178d1","mode":"AES256"}],"session_token_sigs":["ef5068d40231f7b6a9b7cab49ce764d65536a5247496c057ba5a337185ce77965265444a76f2d14c504652f6fde203df5aa1ecc146f4bb7d966a297cb5d666d2b0e73ba1f80e426457903703331d2517"],"session_token_sig_metadata":[{"iv":"c0f7921fbd1450fd4fe369ee1f267411","ephemPublicKey":"04ab31df1daf4fb0109acf0408340487767633aebe4c845b5fd8eb2b6e73afa8d29fe5010eb929ed459fa02a503f16a5b3b83e90210bfbf63899a4cfd558db9494","mac":"45337636527738294a137b8a030bcad2b21e994fcedab2ec4ce0aab39b97c9e6","mode":"AES256"}],"node_pubx":"2b5f58d8e340f1ab922e89b3a69a68930edfe51364644a456335e179bc130128","node_puby":"4b4daa05939426e3cbe7d08f0e773d2bf36f64c00d04620ee6df2a7af4d2247","is_new_key":"true","server_time_offset":"0"},"id":10}]
    at construct (native)
    at apply (native)
    at _construct (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:1461:102)
    at Wrapper (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:1435:60)
    at construct (native)
    at _callSuper (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:358251:142)
    at SomeError (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:358275:25)
    at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:358343:35)
    at anonymous (address at InternalBytecode.js:1:5791)
    at tryCallOne (address at InternalBytecode.js:1:1180)
    at anonymous (address at InternalBytecode.js:1:1874)
    at apply (native)
    at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:92883:50)
    at _callTimer (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:92807:17)
    at _callReactNativeMicrotasksPass (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:92837:17)
    at callReactNativeMicrotasks (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:92992:44)
    at __callReactNativeMicrotasks (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:2144:48)
    at anonymous (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:1958:43)
    at __guard (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:2127:15)
    at flushedQueue (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:1957:21)
    at invokeCallbackAndReturnFlushedQueue (http://localhost:8081/index.bundle//&platform=ios&dev=true&lazy=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&excludeSource=true&sourcePaths=url-server&app=com.jpgstore.comet&transform.routerRoot=app&transform.engine=hermes&transform.bytecode=1&unstable_transformProfile=hermes-stable:1952:33

Hi Martin,

Thank you for your detailed message! I see that you’re encountering an issue with the SFA JS SDK related to insufficient signatures. Here’s a summary of the information you provided, which will help our support team address your issue:

Issue Report:

  • SDK Details: SFA React Native SDK
  • Error Message: Predicate error: Insufficient number of signatures from nodes, required: 3, found: 0
  • Attempted Solutions:
    • Tested different networks (local, SAPPHIRE_MAINNET, SAPPHIRE_TESTNET)
    • Attempted at different times
  • Failure Consistency: The error occurs consistently, not sporadically.

SDK Information:

  • SDK Version:
    • @web3auth/base-provider: ^9.4.4
    • @web3auth/single-factor-auth: ^9.2.0
  • Platform: React Native (Expo)

Code Snippet Summary:

  1. Initialization Code (without sensitive information)

    const web3auth = new Web3Auth({
      clientId,
      web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
      storage: SecureStore,
      mode: SDK_MODE.REACT_NATIVE,
      privateKeyProvider,
      usePnPKey: false,
    });
    
  2. Login Usage Code (general flow)

    • Using Firebase for authentication and calling web3auth.connect().

Provided Screenshots:

Custom Authentication Details (if applicable):

Proposed Suggestions:

  • Make sure that your verifier setup is correct and that it matches the network you are working on, as mismatches can lead to errors like this.
  • Confirm that the Firebase project is properly configured and associated with the Web3Auth configuration.

I hope this information helps our support team assist you better! If there’s anything else you think might be relevant or if you have further questions, feel free to let me know. We’re here to help!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

Hey @martin1

I remember we discussed a solution for this during our Office hours, is this issue resolved?