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

Manage MFA

Call manageMFA after a user with multi-factor authentication (MFA) enabled signs in. Subscribe to onManageMFA to run code after the user finishes managing their factors.

void Start()
{
web3Auth.onManageMFA += onManageMFA;
}

public void manageMFA()
{
web3Auth.manageMFA(new LoginParams
{
authConnection = AuthConnection.GOOGLE
});
}

private void onManageMFA(bool completed)
{
Debug.Log("Manage MFA completed: " + completed);
}

For custom authentication, also pass authConnectionId and the provider-specific values in extraLoginOptions.