When we are trying to login using twitter or twitch using custom auth flow(Auth 0), we are getting this error.
We are able to login for other login sources. But facing issues only with twitter and twitch.
Integration code snippet is as below:
const init = async () => {
try {
const web3auth = new Web3AuthNoModal({
clientId, // get from https://dashboard.web3auth.io
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0x1",
},
web3AuthNetwork: web3AuthNetworkType, //block chain to be used for testing, use mainnet in production env.
useCoreKitKey: false,
});
const openLoginAdapter = new OpenloginAdapter({
adapterSettings: {
clientId,
uxMode: "popup", // popup, redirect
loginConfig: {
jwt: {
verifier: pwdVerifier,
typeOfLogin: pwdVerifierTypeOfLogin,
clientId: pwdVerifierClientId, // using reflekt auth0 account id
},
},
},
});
web3auth.configureAdapter(openLoginAdapter);
setWeb3auth(web3auth);
await web3auth.init();
} catch (error: any) {
console.error(error);
}
};
init();
const web3authProvider: any = await web3auth?.connectTo("openlogin", {
loginProvider: "jwt",
extraLoginOptions: {
domain: emailPwdDomain, // using reflekt auth0 account id
// this corresponds to the field inside jwt which must be used to uniquely
// identify the user. This is mapped b/w google and email password less logins of Auth0
verifierIdField: "sub",
isVerifierIdCaseSensitive: true,
},
Please check and let us know.