WebAuthn
Finalize WebAuthn registration
Finalize a registration with Webauthn using the WebAuthn API response to a navigator.credentials.create()
call.
Note: 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).
POST
https://{tenant_id}.hanko.io
/
webauthn
/
registration
/
finalize
Authorizations
hanko
string
cookierequiredBody
application/json
WebAuthn API response to a navigator.credentials.create() call
id
string
rawId
string
type
enum<string>
Available options:
public-key
response
object
Response
200 - application/json
credential_id
file
The ID of the created credential
user_id
string
The ID of the user on whose behalf a credential was created
Was this page helpful?