Skip to main content
POST
Finalize WebAuthn registration
Deprecated. Please use the Flow API instead. What’s the Flow API?.
Finalize a registration with Webauthn using the WebAuthn API response to a navigator.credentials.create() 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).

Authorizations

hanko
string
cookie
required

Body

application/json

Challenge response

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

id
string
Example:

"_18q6IjW09tiM4NSbsZjocUtGx00Muv5mN6LZCelCMDD..."

rawId
string
Example:

"_18q6IjW09tiM4NSbsZjocUtGx00Muv5mN6LZCelCMDD..."

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

"public-key"

response
object

Response

Successful registration

credential_id
file

The ID of the created credential

user_id
string<uuid4>

The ID of the user on whose behalf a credential was created

Example:

"c339547d-e17d-4ba7-8a1d-b3d5a4d17c1c"