Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gettting this error [TypeError: _reactNative.Linking.removeEventListener is not a function (it is undefined)] on calling login function #108

Open
antiergit opened this issue Aug 29, 2024 · 0 comments

Comments

@antiergit
Copy link

on pressing button gmail is opening after successful signin i am falling in catch giving this error
[TypeError: _reactNative.Linking.removeEventListener is not a function (it is undefined)] , Although same code working fine for ios and i am getting web3auth response

   using following code 
   
   try {
    await this.web3auth.login({
      redirectUrl: "myUrl",
      mfaLevel: 'none',
      loginProvider: loginProvider,
    });
    this.setState({ isLoading: false });


    console.log('chk res web3Auth:::::res', this.web3auth);
    console.log('chk res web3Auth:::::userInfo', this.web3auth.state.userInfo.name);
    console.log('chk res web3Auth:::::privKey', this.web3auth.state.privKey);

  } catch (error) {
    this.setState({ isLoading: false });
    //await this.web3auth.logout();
    console.log('chk error web3Auth:::::res', error);
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant