Skip to main content
import { StytchClient } from '@stytch/react';

const stytch = new StytchClient('${publicToken}');

stytch.webauthn.update({
  webauthn_registration_id: '${webauthnRegistrationId}',
  name: '${exampleWebAuthnName}',
});
{
  "status_code": 200,
  "request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
  "user_id": "user-test-16d9ba61-97a1-4ba4-9720-b03761dc50c6",
  "webauthn_registration": {
    "webauthn_registration_id": "webauthn-registration-test-5c44cc6a-8af7-48d6-8da7-ea821342f5a6",
    "domain": "example.com",
    "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36",
    "authenticator_type": "platform",
    "verified": true,
    "name": "Google Passkey"
  }
}
Allows updating a WebAuthn registration’s name.

Parameters

webauthn_registration_id
string
required
Globally unique UUID that identifies a Passkey or WebAuthn registration in the Stytch API. The webauthn_registration_id is used when you need to operate on a specific User’s WebAuthn registration.
name
string
required
The name of the WebAuthn registration or Passkey.

Response

webauthn_registration
object
A Passkey or WebAuthn registration.
request_id
string
Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.
status_code
number
The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.