Skip to navigation

Passkey Options (Begin WebAuthn Sign-In)

Begin a passkey (WebAuthn) sign-in. Returns the assertion options the browser passes to navigator.credentials.get() together with a one-time challenge token.

Authentication: Public initiation endpoint — no Bearer token required. Browser-only: the WebAuthn relying-party origin is taken from the request’s Origin header and must be the tenant’s hostname, so this flow cannot be driven from a server.

Request body: None.

Response:

  • options — WebAuthn PublicKeyCredentialRequestOptions (challenge, rpId, userVerification: "preferred", timeout, …)
  • challenge_token — Short-lived, single-use token that must be sent back to POST /session/passkey_auth

Errors: None — always returns 200.

Request

This endpoint expects an object.

Response

OK