Error occurred while verifying params could not verify identity - Invalid JWT Verifiers ID field

:classical_building: Content from Web3Auth Community

This topic was originally posted by shahbaz on 3/7/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


Error occurred while verifying params could not verify identity

“Error occurred while verifying params could not verify identity” error could be because the verifierIdField of extraLoginOptions is different from the one you have set up during the creation of Verifiers (JWT Verifiers ID ) on the Web3Auth dashboard.

  • This is the JWT Verifiers ID field on the Verifier Modal of the Web3Auth dashboard.

  • Make sure this matches your code.

    import { WALLET_ADAPTERS, CHAIN_NAMESPACES } from "@web3auth/base";
    

    await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, {
    loginProvider: “jwt”,
    extraLoginOptions: {
    domain: “YOUR-AUTH0-DOMAIN”,
    verifierIdField: “sub”, // <– This is the JWT Verifiers ID field.
    response_type: “token”,
    scope: “email profile openid”,
    },
    });