Enrolling in MFA does not automatically verify the user for wallet operations. Once enrolled,
subsequent wallet actions will require MFA verification. See the verification
guides for how to complete MFA
verification.
Configuring MFA for custom UIs
- React
- Other SDKs
The React SDK uses Privy’s default MFA UIs by default. To use custom UIs instead, set the This configures Privy to not show its default UIs for wallet MFA, allowing your app to use custom enrollment and verification flows instead.
mfa.noPromptOnMfaRequired field to true in the Privy provider:Available MFA methods
Users can enroll in three MFA methods:- SMS: Users authenticate with a 6-digit MFA code sent to their phone number
- TOTP: Users authenticate with a 6-digit MFA code from an authentication app, like Authy or Google Authenticator
- Passkey: Users verify with a previously registered passkey, generally through biometric authentication on their device
Enrollment interfaces
- React
- React Native
- Swift
To enroll users in MFA, use the
useMfaEnrollment hook from Privy:
