Error when cleaning token verifier teal-.... not found for account id: ****

Please select an SDK-specific category from the dropdown when creating a topic here. Use this category for generic help-related topics. Also, remove these lines when asking for generic Help.

Using single-factor-auth SDK : 8.1.0
Custom Authentication, Verifier is blok-cognito

IDToken is eyJraWQiOiJCQnlBT21ybjFKMUh1ZTlNYWNzRXBHVkZyTTVqZUxxd1NQNGN5eHJDQ3pFPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiI1ODQxNTNmMC1jMGMxLTcwYTQtMzI4MS0zZjE2ZjczZjNhNzQiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLXdlc3QtMi5hbWF6b25hd3MuY29tXC91cy13ZXN0LTJfRkVqbzcyUTJ6IiwiY29nbml0bzp1c2VybmFtZSI6IjU4NDE1M2YwLWMwYzEtNzBhNC0zMjgxLTNmMTZmNzNmM2E3NCIsIm9yaWdpbl9qdGkiOiI5MTljZTM0ZS0xN2FlLTQwNTYtYjY2Mi1lZmEwYWQ3ZDZjNjciLCJhdWQiOiI0bjdhdmtrYm4xaTFkb3Y4NGNmYW9rM3RqZyIsImV2ZW50X2lkIjoiM2RmODA3NDQtNzJjYi00OGU0LTk5OGYtZDdjYzM1NzE4NTBiIiwidG9rZW5fdXNlIjoiaWQiLCJhdXRoX3RpbWUiOjE3MjI4NjAxMjIsIm5hbWUiOiJHb3VyYXYiLCJleHAiOjE3MjI4NjM3MjIsImlhdCI6MTcyMjg2MDEyMiwianRpIjoiYjk2NzNlZDctMGE2My00YzBhLThjNDktNzBhNTkwOTA1MzBiIiwiZW1haWwiOiJtYWlsZ291cmF2QGdtYWlsLmNvbSJ9.Tcyt2O3mC_59Xz1bGJftjwwjrwbFF6v3GA783FS_QfGSnDiMfC9H6-Pm5pMHB1P_cAffC9fLHIpn7YvWYP1yni4zps3NXY8CM0YFjw8h9yLd50yXqcqET_UJ_mSjGp1QbgKLEyD31BWGpATWOeMV8InNOtkrXpYjCy96WHo2jrMEl7X5b7t6AjxvaehrFvFraF5buo7vJ9FW3aBHNTSWhQionh0_uFi8tz_sjY2Gf2f98AaWNO1uFF9e_nr-yy608rVuTtCsvguds4U-a42v3bGKb85g3tO7pcdb6oSG7S_MhE9O5EW_WkQ8S6H8ve3djVtoULsb6yHQV1F42Klz8g

Seeing this error at the connect() function call

import { decodeToken, Web3Auth } from “@web3auth/single-factor-auth”
const { payload } = decodeToken(idToken);

  await web3Auth.connect({
    verifier : "blok-cognito",
    verifierId: (payload as any).email,
    idToken: idToken,
  });

Please advice on the fix … Thanks

Hey @gourav.paliwal,

I understand you’re encountering an error at the web3auth.connect() step, but it seems the original post didn’t specify the exact error you’re facing. Could you please share the error message you’re receiving? This will help me assist you more effectively.

here is the exact error

Error when cleaning token verifier teal-blok-cognito not found for account id: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
at torusUtils.esm.js:614:1
at

Thanks for the info, @gourav.paliwal. Could you please share a screenshot of the client ID on your Web3Auth developer dashboard which has the verifier teal-blok-cognito and the client ID that you’ve passed in the code? Just a reminder, the client ID is passed in the Web3Auth constructor.

ClientId is BObJwerpG_iENrp_cqZ3BMIgPEu9rh38Fw2szO_rTAlKz4JaeAbOazq2WT9CP-07nTQrZDV_8o-2563dLA2Kkxs

This is how I have created web3Auth instance

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

    const web3AuthInstance = new Web3Auth({
      clientId, 
      web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
      usePnPKey: true, 
      privateKeyProvider: privateKeyProvider,
    });
1 Like

Hi @maharshi , got it working now. I was passing incorrect value in web3AuthNetwork param.

Thanks

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.