apistockdocs
v0.4 GitHub apistock.dev
API reference/Auth

Sign in with a passkey

POST /v1/auth/passkeys/login
Send the passkey's response. Starts a session verified with a second factor, like POST /v1/auth/login/mfa.

Body

application/json
ceremony_tokenstringrequired

From POST /v1/auth/passkeys/login/options

maxLength: 256
credentialobjectrequired

The PublicKeyCredential from navigator.credentials.get(), as JSON

transportstring

cookie (browsers): an HttpOnly session cookie; bearer (native apps): the token in the response

one of: cookie, bearerdefault: "cookie"

Responses

errors: application/problem+json
200

OK

401

Unauthorized

422

Unprocessable Entity

500

Internal Server Error

503

Service Unavailable

Match errors on the problem's code, which stays the same, not on its message.

esc
↑↓ move↵ openesc close