listTrustedDevices

client.listTrustedDevices({
  accessToken: string
})

About this command

Lists user’s trusted devices. A trusted device is a device the user has a second factor authentication method attached to and has explicitly assigned as trusted.

Examples

client.listTrustedDevices('eyJ0eXAiOiJKV1QiL...')

Parameters

accessToken string

The authorization credential JSON Web Token (JWT) used to access the ReachFive API.

Response

Type: Promise<ListTrustedDevicesResponse>

ListTrustedDevicesResponse: {
  trustedDevices: TrustedDevice[] (1)
}
1 Where the information for a TrustedDevice is shown below.
Item Description

id

The ID of the trusted device.

metadata

Metadata object associated with the trusted device.

This includes:

  • ip: The IP of the trusted device.

  • operatingSystemAgent: The Operating System such as Windows 11.

  • userAgent: The User Agent information such as Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion.

  • deviceClass: The device class such as mobile.

  • deviceName: The device name such as "My Mobile".

userId

The ID of the user.

createdAt

The time at which the trusted device entry was created.