- React
- React Native
- Swift
- Android
Requesting an MFA challenge
To request an MFA challenge for the current user, call theinit method from the useMfa hook, passing 'passkey' as the MFA method parameter:'passkey', init will return an object with options to pass to the native passkey system. The method returns a Promise that resolves with these options if the challenge was successfully created, and rejects with an error if there was an issue.Submitting the MFA verification
Onceinit has resolved successfully, prompt the user to select a passkey by calling submit with the options returned from the init method:submit resolves successfully, the user has completed MFA and can proceed to use their embedded wallet.
