RefreshToken
Less than 1 minute
RefreshToken
class RefreshTokenProperties
token
public readonly string $tokenType: string
clientId
public readonly string $clientIdType: string
userIdentity
public readonly string $userIdentityType: string
scope
public readonly array $scopeType: array
resource
public readonly string $resourceType: string
expiresAt
public readonly int $expiresAtType: int
familyId
public readonly string $familyIdType: string
consumedAt
public readonly int $consumedAtType: int
createdAt
when the grant (the first token of the family) was issued
public readonly int $createdAtType: int
lastUsedAt
when the grant was last refreshed, which is when this token was issued
public readonly int $lastUsedAtType: int
deviceLabel
the name the client gave for the device it runs on, if any
public readonly string $deviceLabelType: string
Methods
__construct
public __construct(string $token, string $clientId, string $userIdentity, array $scope, string $resource, int $expiresAt, string $familyId, int $consumedAt, int $createdAt, int $lastUsedAt, string $deviceLabel): voidParameters
| Parameter | Type | Description |
|---|---|---|
$token | string | |
$clientId | string | |
$userIdentity | string | |
$scope | array | |
$resource | string | |
$expiresAt | int | |
$familyId | string | |
$consumedAt | int | |
$createdAt | int | when the grant (the first token of the family) was issued |
$lastUsedAt | int | when the grant was last refreshed, which is when this token was issued |
$deviceLabel | string | the name the client gave for the device it runs on, if any |
isConsumed
Whether this token has already been exchanged for a new one.
public isConsumed(): boolReturns: bool
isExpired
public isExpired(): boolReturns: bool
Generated by Hazaar API Doc Generator on Sun, 08 Nov 2026 03:36:15 +0000