WorkOS PHP SDK

AgentBlueprintsCreateRequestSessionSetting
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Token and session lifetimes for sessions minted from this blueprint.

Table of Contents

Interfaces

JsonSerializable

Properties

$accessTokenTtlSeconds  : int
Lifetime of each minted access token in seconds. At most 3,600 (1 hour).
$maxAgeSeconds  : int
Maximum lifetime of a session in seconds; refreshes never extend a session past this. At most 31,536,000 (365 days).
$refreshTokenTtlSeconds  : int
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 $maxAgeSeconds, int $accessTokenTtlSeconds, int $refreshTokenTtlSeconds) : mixed
Parameters
$maxAgeSeconds : int
$accessTokenTtlSeconds : int
$refreshTokenTtlSeconds : int

jsonSerialize()

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

Search results