DeviceInfo
Less than 1 minute
DeviceInfo
class DeviceInfoProperties
platform
public readonly string $platformType: string
browser
public readonly string $browserType: string
userAgent
public readonly string $userAgentType: string
ipAddress
public readonly string $ipAddressType: string
createdAt
public readonly int $createdAtType: int
lastSeenAt
public readonly int $lastSeenAtType: int
Methods
__construct
public __construct(string $platform, string $browser, string $userAgent, string $ipAddress, int $createdAt, int $lastSeenAt): voidParameters
| Parameter | Type | Description |
|---|---|---|
$platform | string | |
$browser | string | |
$userAgent | string | |
$ipAddress | string | |
$createdAt | int | |
$lastSeenAt | int |
capture
Captures device info from the current request.
public capture(?int $createdAt): selfReturns: self
Parameters
| Parameter | Type | Description |
|---|---|---|
$createdAt | int | First-seen time to preserve across a refresh-token rotation (the same device/session continuing), or null for a fresh login, in which case createdAt is set to now alongside lastSeenAt. |
Generated by Hazaar API Doc Generator on Sun, 23 Aug 2026 10:49:44 +0000