How do I recover account if MFA is enabled and I lose my primary login method (social login for example)

Hi,
In the docs I read at many instances that with MFA enabled one can recover their account. For example if we have 2/3, any 2 shares can be used to reconstruct the private key. But I could not find any code reference on how to recover it.

I also read about https://app.openlogin.com/v4/wallet/account but cannot see any apps listed, is it only for mainnet?

What I want to achieve: Recover wallet in case the user loses it’s primary login (for example google account).

Hi Vidhan!

Thanks for reaching out! It looks like you’re dealing with account recovery when Multi-Factor Authentication (MFA) is enabled. I can help with that.

SDK Details: PnP Web SDK
Issue: Account recovery with MFA enabled
Platform: Not specified (could you confirm if it’s web or mobile?)

From your message, it seems like you have a solid understanding of the concept of account recovery using shares. The documentation you mentioned does cover the theory but may be lacking in code samples.

While I cannot provide the exact code snippet without further specifics, I recommend checking the official documentation for the PnP Web SDK regarding account recovery methods. Additionally, you might want to look into the account endpoint you referenced for details on managing accounts under various authentication methods.

As for your question about apps listed on the account recovery link, it typically only displays apps associated with mainnet accounts. If you’re working in test or local environments, those might not appear there.

To summarize, here are a few next steps you could consider:

  1. Revisit the PnP Web SDK documentation for specific recovery methods.
  2. Check if there’s a sample project or repository that demonstrates account recovery with MFA.

Feel free to share more details or any specific code snippets you’re working with, and I can help you further!

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

Hey Vidhaan

You’re right that with MFA, users can recover their account using 2 out of 3 shares, and the tKey JS SDK can help with this. We don’t have a dedicated portal for key recovery yet, but we’re working on a new user facing dashboard that will allow folks to manage their shares independently of dApps. The link you mentioned is from an old version that we no longer maintain.

Please note, this won’t apply to custom authentication apps, as they handle their own authentication.