Navigation

The device object

Attributes


_id string

The unique identifier of the device.


user string

The unique identifier of the account associated with the challenge.


status enum

One of attached, detached. Describes the current status of the device.

Possible enum values
attached

The device is attached.


detached

The device is detached. A device can be detached manually using the Rupt SDK or automatically via environmental factors.


metadata object

The custom metadata associated with the device.


info object

Hardware information associated with the device. This information may include browser, engine, os, device and cpu.


attachedAt date

The date and time the device was last attached.


createdAt date

The date and time the device was created.


updatedAt date

The date and time the device was last updated.

The device object
{
  "_id": "635940382397b3ac0b81c0b7",
  "user": "649873be6e8b6f9b33722a0c",
  "status": "attached",
  "metadata": {
    "key": "value",
  },
  "info": {
    "device": {
      "vendor": "Apple",
      "model": "iPhone 12",
      "type": "mobile"
    }
  },
  "attachedAt": "2021-09-01T00:00:00.000Z",
  "createdAt": "2021-09-01T00:00:00.000Z",
  "updatedAt": "2021-09-01T00:00:00.000Z",
}