web3auth/react-native-sdk version: 3.5.0
We are trying to incorporate Twitch social login using web3auth react-native-sdk. We have tried below 2 ways and getting error in both of them.
(1) provided social login provider as Twitch without providing loginConfig
We are already utilizing the login providers like Google, Twitter, Facebook, Linkedin, Apple, Github etc without providing any login config and they are perfectly working fine with below code.
const web3auth = new Web3Auth(WebBrowser, {
clientId,
network });await web3auth.login({
redirectUrl: redirecturl
mfaLevel: “none”,
curve: curve,
extraLoginOptions: {
login_hint: provider == LOGIN_PROVIDER.EMAIL_PASSWORDLESS && loginHint
},
loginProvider: provider
});
As Twitch is also available as one of the login providers in Web3Auth, I tried to use same code for twitch by simply providing login provider as ‘Twitch’. However after clicking ‘Authorize’ on the authorization screen, It goes to ‘Torus Wallet’ connect screen so something seems to be wrong.
(2) By providing login config for Twitch
I followed steps described in this documentation and provided the login config as follows:
const web3auth = new Web3Auth(WebBrowser, {
clientId,
network: network
loginConfig: {
twitch: {
verifier: verifier name, // get it from web3auth dashboard
typeOfLogin: “twitch”,
clientId: twitch client id, // twitch’s client id of the app created on twitch developer console
},
},
});
Note: As mentioned in the documentation, we have provided ‘OAuth Redirect URLs’ as ‘https://beta.openlogin.com/auth’.
It gives me below error:
Please help and guide to achieve twitch login with web3auth react-native-sdk.
Thanks.