Accessing the logged in account

What are the ways users can access their accounts –

  • Getting a private key from the code and then importing it on metamask is one way.

How it can be done through openlogin or is there are any other ways?

@puneet Thanks for your recent post.

  1. You can enable Interoperability for your Dapp:
    Interoperability | Documentation | Web3Auth

It will show if the following conditions are met:
1 - EVM wallet is on Mainnet (Legacy)
2 - Flag on dashboard is ticked.

  1. eth_private_key is used to fetch the private key of the logged in user. It is only available for in-app adapters like openlogin. The private key can then be imported into another wallet.
async getPrivateKey() {
    const privateKey = await provider.request({
        method: "private_key"
    });
    //Do something with privateKey
}
  1. You can also access app.openlogin.com and go to Authorized Apps , if you have enabled Inteoperability, the private key for your Dapp will be available to be downloaded:

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