Archived Content from Web3Auth Community
This topic was originally posted by dev.amsets on 8/16/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
Module: “@web3auth /openlogin-adapter”: “^6.1.3”,
I use a custom auth
. When I try to log in, I get an error even though I have my VPN turned off and also a stable internet connection, then why am I getting this error?
vjgee
August 16, 2023, 2:58am
2
@dev.amsets Thanks for reaching out.
Which network are you on Mainnet, Testnet, Cyan?
Network: Testnet
Type: Aggregate
@vjgee
vjgee
August 16, 2023, 6:13am
4
The error indicates the inability to verify your JWT token. Please refer to the below troubleshooting guide:
<a href="https://web3auth.io/docs/troubleshooting/jwt-errors#error-occurred-while-verifying-params-unable-to-verify-jwt-token" target="_blank" rel="noopener">web3auth.io</a>
JWT Errors | Documentation - Web3Auth
Have you specified the additional parameters for Auth0:
const web3authProvider = await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, {
loginProvider: "jwt",
extraLoginOptions: {
verifierIdField: "sub", // same as your JWT Verifier ID
domain: "https://YOUR-APPLICATION-DOMAIN", // your Auth0 domain
},
});
<a href="https://web3auth.io/docs/sdk/pnp/web/adapters/openlogin#logging-in-through-your-custom-jwt-token" target="_blank" rel="noopener">web3auth.io</a>
Web3Auth PnP Web Adapter SDKs - Openlogin Adapter for Social Logins | Documentation - Web3Auth