Custom Authentication: Sometimes login error

When asking for help in this category, please make sure to provide the following details:

→ I am logging in as Custom Authentication using Firebase IdToken, and the basic login works, but sometimes I get a login failure error. What could be the problem?

Config code:

    adapterSettings: {
      clientId: clientId,
      network: "sapphire_mainnet",
      uxMode: "redirect",
      redirectUrl: "http://localhost:8080/register",
      no3PC: true,
      loginConfig: {
        jwt: {
          verifier: "out verifier name",
          typeOfLogin: "jwt",
          clientId: clientId,
        },
      },
    },

Login code:

const web3authProvider = await web3auth.connectTo('openlogin', {
      loginProvider: "jwt",
      extraLoginOptions: {
        id_token: idToken,
        verifierIdField: "sub",
        domain: "http://localhost:8080/register",
      },
    })

@chenglin.han Thanks for your patience.

Are you still facing this issue ?

@vjgee Thank you!

It is difficult to reproduce.
I have not been able to reproduce it so far, but what are some general possibilities?

Such as:

  • Firebase IdToken(JWT) is invalid?
  • Web3Auth timeout and throw exception?

Hello @chenglin.han
This system time login error can happening from various reasons,
first check your system time is same with your UTC time zone.
also I recommend you to turn off the vpn if it’s running.
If it still happens then please let me know once more.