Issue an authentication challenge for a user.
The response type depends on the authentication method:
For OTP, either phoneNumber or emailAddress is required. For passkey, phoneNumber or emailAddress is optional (enables usernameless flow when omitted).
Challenges may only be issued on a fixed time interval.
The request body for issuing a new authentication challenge.
For OTP authentication, either phoneNumber or emailAddress is required. For passkey authentication, phoneNumber or emailAddress is optional (enables usernameless flow when omitted).
The authentication method to use. Defaults to "otp" for backward compatibility.
otp, passkey The phone number of a user.
The email address of a user.
6 - 100Created.
Response from creating an authentication challenge.
The response type depends on the authentication method specified in the request:
The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.
The expiration datetime of the challenge in the ISO-8601 format.