Users > Devices
Commerce APIUsersDevices
Devices

A device in the context of our API represents a distinct tool utilized by a user when engaging with our system. At Lana, we do not assign a unique Device ID; instead, you have the freedom to provide any ID you prefer. Typically, browser clients generate and store a random ID using the localStorage API, thereby associating the device with a specific browser instance. Other types of devices may employ alternative methods of device identification.

Devices also play a crucial role in simplifying Two Factor Authentication (2FA). By designating a device as trusted, the Two Factor Authentication step can be bypassed when that device is used for login, streamlining the authentication process.

For further details on Two Factor Authentication, please refer to the (TODO: 2FA link) documentation.

Endpoints

EndpointDescription
devicesGet devices
devicesModify devices
devicesDeleteDelete devices

Types

Types
Device
DeviceModify