Skip to main content
POST
Finalize WebAuthn login
Deprecated. Please use the Flow API instead. What’s the Flow API?.
Finalize a login with Webauthn using the WebAuthn API response to a navigator.credentials.get() call.
The Webauthn API uses binary data represented by ArrayBuffers for certain input/output values. The Hanko API returns these values as base64url-encoded, so they must be converted to ArrayBuffers when passed to the Webauthn API. Similarly, Webauthn API output must be converted to base64url-encoded values when passed to the Hanko API (e.g. using the webauthn-json library).

Body

application/json

WebAuthn API response to a navigator.credentials.get() call

id
string
Example:

"_18q6IjW09tiM4NSbsZjocUtGx00Muv5mN6LZCelCMDD..."

rawId
string
Example:

"_18q6IjW09tiM4NSbsZjocUtGx00Muv5mN6LZCelCMDD..."

type
enum<string>
Available options:
public-key
Example:

"public-key"

response
object

Response

Successful login

Response after a successful login with webauthn

credential_id
string<base64url>
user_id
string<uuid4>