For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

Enable MFA

Call enableMFA with the user's LoginParams to start the multi-factor authentication (MFA) setup flow. For custom authentication, include the connection ID and identity token.

tip

Additionally you can associate a function to be triggered on successful MFA Enabled.

void Start()
{
web3Auth = GetComponent<Web3Auth>();
web3Auth.setOptions(new Web3AuthOptions()
{

});
web3Auth.onMFASetup += onMFASetup;
}
private void onMFASetup(bool response)
{
// Functions to be called after MFA setup
}

Usage

public void enableMFA()
{
var options = new LoginParams()
{
authConnection = AuthConnection.GOOGLE
};

web3Auth.enableMFA(options);
}
On this page