Skip to content

Create discoverable WebAuthn login options.

POST
/api/auth/passkeys/login/options
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/auth/passkeys/login/options \
--header 'Content-Type: application/json' \
--data '{}'
Media type application/json
object
email

Accepted by older clients but discoverable passkey login does not require it.

string format: email
Example
{}

Successful JSON response.

Media type application/json
object
options
required

WebAuthn options generated by @simplewebauthn/server.

object
key
additional properties
challengeId
required
string
Example
{
"options": {
"challenge": "challenge",
"rpId": "auth.example.com",
"allowCredentials": [],
"userVerification": "required"
},
"challengeId": "challenge_123"
}