WorkOS PHP SDK

AgentBlueprintsUpdateRequestSessionSetting
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Token and session lifetimes for sessions minted from this blueprint. Omitted fields are left unchanged.

Table of Contents

Interfaces

JsonSerializable

Properties

$accessTokenTtlSeconds  : int|null
Lifetime of each minted access token in seconds. At most 3,600 (1 hour).
$maxAgeSeconds  : int|null
Maximum lifetime of a session in seconds; refreshes never extend a session past this. At most 31,536,000 (365 days).
$refreshTokenTtlSeconds  : int|null
Lifetime of each rotated refresh token in seconds. At most 5,184,000 (60 days).

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct([int|null $maxAgeSeconds = null ][, int|null $accessTokenTtlSeconds = null ][, int|null $refreshTokenTtlSeconds = null ]) : mixed
Parameters
$maxAgeSeconds : int|null = null
$accessTokenTtlSeconds : int|null = null
$refreshTokenTtlSeconds : int|null = null

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results