How to trigger the web-based page for user to pick their own loginProvider in React Native?

I might be missing something here 😄

I cloned the bare React Native example here: https://github.com/Web3Auth/examples/blob/main/react-native/rn-bare-example/App.js

Everything works well, but I would like to experiment with showing the web-based page for users to pick their own login provider as described here: https://web3auth.io/docs/sdk/react-native/usage#login ("Login provider to be used, will show a web-based page allowing user to pick their own loginProvider if not specified")

However, if I don't provide the loginProvider like so:

      const info = await web3auth.login({
        redirectUrl: resolvedRedirectUrl,
      });

I get the following error:

Please pass loginProvider in params while using sessionless_redirect mode.

Am I missing something?

Thanks in advance 😄



Originally posted by: luisalima

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1367