Recommended: JavaScript SDK for React Native
While this SDK is still supported, we recommend using newer JavaScript SDK, which is optimized for React Native, but also comes with a host of other benefits.
Introduction
This guide will show you how to add a passkey for MFA to your app using your own custom UI. You can also refer to the general MFA guide here to learn more about this feature (note that this guide is for account level MFA, rather than transaction level MFA).General Flow
When user already has a passkey registered
- User logs in
- User is redirected to the MFA view
- User adds a passkey
- User is redirected to the recovery codes view
- User acknowledges the recovery codes
The user must acknowledge the recovery codes before the MFA setup flow is complete.
When user does not have a passkey registered
- User logs in
- User is redirected to the MFA view
- User selects existing passkey to authenticate
User does not need to acknowledge the recovery codes again in this flow.
React Native
React Native requires platform setup for passkeys. See the setup guide: /react-native/setup-passkey