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.

createdAt string

The date and time when the passkey was created.

lastUsedAt string

The date and time when the passkey was last used.

aaguid string

The Authenticator Attestation Globally Unique Identifier, a unique number that identifies the model of the authenticator.

This isn’t always present in the response.