Is it possible to 1) delete account and 2) disable MFA?

Hello. as I’m building a wallet with web3auth, I’m wondering about the following two.

1: delete account
Does useWeb3Auth hook from “@web3auth/modal-react-hooks” allow user to delete account? what I mean by deleting account is 1) removing generated keys for the account and 2) user can get a new different private key for the same social account after deletion.

Related to this, I’m wondering if logout() is the one to do so but I’m not sure. I read the doc and found no explanation about what the optional cleanup param does. Would be great if some could teach what it is too.

2: Disable MFA
Does the same sdk also allow disable MFA after it’s enabled once? useWeb3Auth hook doesn’t seem to expose any method like disableMFA though.

Hi Porco R,

Thank you for reaching out with your questions about Web3Auth! I’m happy to help you navigate this.

Regarding Account Deletion:

  1. Deleting Account: The useWeb3Auth hook from “@web3auth/modal-react-hooks” doesn’t natively provide a direct way to delete an account or regenerate keys. However, using logout() might help in logging out the user and removing session details. The optional cleanup parameter in logout() is indeed meant for cleanup actions, but details on its functionality can often be vague in documentation. Typically, this does not delete the account but ensures that all session-related data is cleared.

Regarding MFA:

  1. Disabling MFA: Unfortunately, the current SDK does not supply an explicit method to disable MFA once it’s enabled. It’s a common request, and we’re always looking to improve based on user feedback. While you may not find a direct function for this, it might be useful to manage MFA settings at the provider level with custom authentication.

If you have further questions or are looking for specific functionality, feel free to share more details or suggestions. Your input can help us enhance our offerings!

Happy coding!

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.

So what should i do as a developer who offers wallet app using web3auth’s PNP SDK when user wants to get a new key tied to their specific social account? They might want to stick to a google account but want to get a new private key. Is there no way to do so even with other types of SDKs Web3Auth provide?

hi, it’d be great if I could get answer for this.

Hey @porcorossoj89

As of now, this feature is not supported with Web3Auth PnP SDK, if you use Web3Auth’s MPC CoreKit SDK, there you can have multiple accounts with the same social using setTssWalletIndex.

Note: Use of MPC CoreKit SDK is gated under the Enterprize plan.