> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Embedded Passwordless Login in Native Applications

> Describes implementing Passwordless authentication with embedded login in native applications.

To use the Embedded Passwordless (Passwordless: Form of authentication that does not rely on a password as the first factor.) APIs in Native applications, make sure you enable the **Passwordless OTP** grant at [Auth0 Dashboard > Applications > Applications](https://manage.auth0.com/#/applications) in your application's settings under **Advanced Settings** > **Grant Types**.

Passwordless authentication for Native applications consists of two steps:

* Capture the user identifier in your application (the user's email or phone number) and invoke the `/passwordless/start` endpoint to initiate the passwordless flow. The user will get an email or an SMS with a one-time password.
* Prompt the user for the one-time-use code, and call the `/oauth/token` endpoint to get authentication tokens.

Below we list a few code snippets that can be used to call these API endpoints for different scenarios.

**Send a one-time-use password via email**

**Send a magic link via email**

**Send a one-time-use password via SMS**

**Authenticate an SMS user**

**Authenticate an Email user**

If you prefer, you can use the Android or iOS SDKs, which wrap this APIs in a platform-friendly way:

* [Lock.Android Passwordless](/docs/docs/libraries/lock-android/lock-android-passwordless)
* [Auth0.Android Passwordless](/docs/docs/libraries/auth0-android/auth0-android-passwordless)
* [Auth0.swift Passwordless](/docs/docs/libraries/auth0-swift/auth0-swift-passwordless)

## Customize MFA with Embedded

> [!WARNING]
>
> **The Customizable MFA with the Resource Owner Password Grant, Embedded, or Refresh Token flows feature is in [Early Access](/docs/docs/troubleshoot/product-lifecycle/product-release-stages).**
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

Customize MFA (Multi-factor authentication (MFA): User authentication process that uses a factor in addition to username and password such as a code via SMS.) with embedded flows. Use the MFA API to allow users to enroll and challenge with factors of their choice that are supported by your application.

When your application requests an access token at the (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.) `oauth/token` endpoint, the returned response includes the `mfa_token` to use the MFA API and the `mfa_requirements` parameter with a list of authenticators your application currently supports:

```json lines theme={null}
{
  "error": "mfa_required",
  "error_description": "Multifactor authentication required",
  "mfa_token": "Fe26...Ha",
  "mfa_requirements": {
    "challenge": [
      { "type": "otp" },
      { "type": "push-notification" },
      { "type": "phone" },
      { "type": "recovery-code" }
    ]
  }
}
```

Use the `mfa_token` to call the [`mfa/authenticator`](/docs/docs/api/authentication/multi-factor-authentication/list-authenticators) endpoint to list all factors the user has enrolled and match the same `type` your application supports. You also need to obtain the matching `authenticator_type` to issue challenges:

```json lines theme={null}
[
  {
    "type": "recovery-code",
    "id": "recovery-code|dev_qpOkGUOxBpw6R16t",
    "authenticator_type": "recovery-code",
    "active": true
  },
  {
    "type": "otp",
    "id": "totp|dev_6NWz8awwC8brh2dN",
    "authenticator_type": "otp",
    "active": true
  }
]
```

Proceed to enforce the MFA challenge by calling the [`request/mfa/challenge`](/docs/docs/api/authentication/multi-factor-authentication/request-mfa-challenge) endpoint.

Further customize your MFA flow with Auth0 Actions. To learn more, read [Actions Triggers: post-challenge - API Object](/docs/docs/actions/reference/password-reset-post-challenge/password-reset-post-challenge-api-object).
