コンテンツにスキップ

Start Direct Auth passkey login.

POST
/api/v1/auth/direct/passkey/login/start
Code sample: Shell / cURL
curl --request POST \
--url https://auth.example.com/api/v1/auth/direct/passkey/login/start \
--header 'Content-Type: application/json' \
--data '{ "client_id": "client_123", "code_challenge": "rfc7636-code-challenge", "code_challenge_method": "S256", "channel": "browser" }'

Creates WebAuthn authentication options for a Direct Auth passkey login request after validating client, channel, origin, and login hints.

Media type application/json
object
client_id
required
string
code_challenge
required
string
code_challenge_method
required
string
Allowed values: S256
channel
required
string
Allowed values: browser native
scope
string
authorization_challenge_id
string
human_verification_response
string
Example
{
"client_id": "client_123",
"code_challenge": "rfc7636-code-challenge",
"code_challenge_method": "S256",
"channel": "browser"
}

Successful JSON response.

Media type application/json
object
challenge_id
required
string
options
required

WebAuthn options generated by @simplewebauthn/server.

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

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}

Error response.

Media type application/json
object
error
string
error_description
string
message
string
webauthn_signal

Optional browser-side WebAuthn Signal API hint. When unknown_credential is true, clients that just received a WebAuthn credential assertion may call PublicKeyCredential.signalUnknownCredential() for that credential ID.

object
unknown_credential
boolean
key
additional properties
Example generated
{
"error": "example",
"error_description": "example",
"message": "example",
"webauthn_signal": {
"unknown_credential": true
}
}