Skip to main content

Enable MFA

The enableMFA method is used to trigger MFA setup flow for users. The method takes LoginParams which will be used during custom auth connections. If you are using default login providers, you don't need to pass LoginParams. If you are using custom JWT auth connections, you need to pass the valid JWT token in LoginParams as well.

Usage

do {
let isMFAEnabled = try await web3Auth.enableMFA()
} catch {
print(error.localizedDescription)
// Handle Error
}
On this page