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 for a user

The enableMFA method is used to trigger MFA setup flow for users. The method takes optional LoginParams for custom connections. If you are using default social login providers, you don't need to pass LoginParams. If you are using custom JWT connections, pass the JWT token in loginParams using LoginParams.idToken.

Usage

Usage
try {
await Web3AuthFlutter.enableMFA();
} on UserCancelledException {
log("User cancelled.");
} catch (e) {
log("Unknown exception occurred");
}
On this page