How to get privKey on Web Modal

In react native, to get the privKey I am able to do:

const info = await web3auth.login({
      loginProvider: LOGIN_PROVIDER.GOOGLE,
      redirectUrl: resolvedRedirectUrl,
    });
setKey(info.privKey);

How can I get the same privkey using the Web Modal SDK as there is not login method on web.

Hi @adityapchaudhari,

I hope you are doing great. Please check our examples for the modal and also read our document on how to get the same keys. You need to maintain the same clientId, verifierId, network, and login provider.

Modal examples : web3auth-pnp-examples/web-modal-sdk at main · Web3Auth/web3auth-pnp-examples · GitHub
https://evm-modal.vercel.app/

Documentation: Different Private Keys/ Wallet Address across Integrations | Documentation | Web3Auth

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.