listSessionDevices

client.listSessionDevices(accessToken: string)

About this command

Lists the active session devices for the authenticated user.

The access token must include the session scope. If the user is enrolled in MFA, the token must also include the amr:mfa claim.

Examples

client.listSessionDevices('eyJ0eXAiOiJKV1QiL...')

Parameters

accessToken string

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

Response

Type: Promise<SessionDevice[]>

SessionDevice[]: SessionDevice[] (1)
1 An array of SessionDevice objects.

Where each SessionDevice contains the fields below.

Item Description

id

The unique identifier for the session device.

tokenType

The type of authentication token associated with this device session.

Values are RT (refresh token) or ST (short-lived token).

ip

The IP address from which the device connected or established the session.

country

The country resolved from the device IP address at login time.

city

The city resolved from the device IP address at login time.

operatingSystem

The operating system running on the device.

userAgentName

The browser or client user agent name.

deviceClass

The classification category of the device (for example, Desktop, Mobile, or Tablet).

deviceName

The user-friendly or system-assigned name of the device.

createdAt

The timestamp when the device session was initially created.

lastConnection

The timestamp of the device’s most recent activity or network connection.

expiresAt

The timestamp when the device session is scheduled to expire.

Example
[
  {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "tokenType": "RT",
    "ip": "192.168.1.15",
    "country": "France",
    "city": "Asnières-sur-Seine",
    "operatingSystem": "iOS 17.4",
    "userAgentName": "Mobile Safari",
    "deviceClass": "SmartPhone",
    "deviceName": "iPhone 15 Pro",
    "createdAt": "2026-07-06",
    "lastConnection": "2026-07-06",
    "expiresAt": "2026-07-06"
  }
]
R5 AI Assistant

Confirm Deletion