listWebAuthnDevices

client.listWebAuthnDevices(accessToken: string)

About this command

When authenticated, the user can list the registred FIDO2 devices.

  • The WebAuthn feature must be enabled on your ReachFive account.

Examples

client
  .listWebAuthnDevices('eyJ0eXAiOiJKV1QiL...')
  .then(deviceCredentials => {
    // Display the list of device credentials
  })
  .catch(err => console.error(err))

Parameters

accessToken string

The authorization credential JSON Web Token (JWT) used to access the ReachFive API, less than five minutes old.

Response

Type: Promise<DeviceCredential[]>

DeviceCredential

friendlyName string

The name of the FIDO2 device.

id string

The identifier of the FIDO2 device.

Feedback