security

Verify adding of a new webauthn security key

Changed on

Complete the process of adding a new WebAuthn security key by verifying the authenticator response. Requires elevated permissions.

post/user/webauthn/verify

Request

  • Base URL
    https://{subdomain}.auth.{region}.nhost.run/v1
  • URL
    https://{subdomain}.auth.{region}.nhost.run/v1/user/webauthn/verify
  • Auth
    HTTP bearer

Request body

nicknamestring

Optional nickname for the security key

Response

Security key successfully added

idstring required

The ID of the newly added security key

nicknamestring

The nickname of the security key if provided

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000"
}

Changes

    • warning

      added the new otp-too-many-attempts enum value to the response property for the response status

    • warning

      added the new user-already-exists enum value to the response property for the response status

    • info

      removed the email-already-in-use enum value from the response property for the response status