Could not get result from torus nodes Duplicate token found - Duplicate Token

: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.


Could not get result from torus nodes Duplicate token found

“Could not get result from torus nodes Duplicate token found” error is thrown when the JWT is sent twice in the same request.

await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, {
  loginProvider: "jwt",
  extraLoginOptions: {
    id_token: "ID_TOKEN", // <-- JWT should be unique for each request.
    verifierIdField: "sub",
  },
});