Skip to main content

Documentation Index

Fetch the complete documentation index at: https://auth0-feat-authentication-api-migration.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

POST /oauth/token Once you have a verification code, use this endpoint to login the user with their phone number/email and verification code.

Remarks

  • The grant_type should be http://auth0.com/oauth/grant-type/passwordless/otp.
  • The client_id of your application is required.
  • The username is either the user’s phone number (if realm=sms) or the user’s email (if realm=email).
  • The realm must be either sms or email, matching the POST /passwordless/start request.
  • The otp should be the user’s verification code.
  • The redirect_uri is a required callback URL that must be registered in your application’s Allowed Callback URLs.

Learn More

Parameters

DPoP
string
A DPoP proof for the request. This is optional and only required if your application uses Demonstrating Proof-of-Possession.

Request Body

client_id
string
required
The client_id of your application.
client_secret
string
The client_secret of your application. Required for Regular Web Applications only.
otp
string
required
The user’s verification code.
realm
string
required
Should match the connection used.Allowed values: email, sms
username
string
required
The user’s phone number or email.
audience
string
API Identifier of the API for which you want to get an Access Token.
resource
string
The identifier of the target API (resource server) you want to access. Must match an API Identifier registered in your Auth0 tenant. Used as an alternative to audience when the tenant’s Resource Parameter Compatibility Profile is set to compatibility.
scope
string
Use openid to get an ID Token.
redirect_uri
string
required
A callback URL that has been registered with your application’s Allowed Callback URLs.

Response

StatusDescription
200User authenticated successfully.
400Bad Request. Invalid parameters.
401Unauthorized. Invalid credentials.