WorkOS PHP SDK

AgentBlueprintSessionSetting
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.
$maxAgeSeconds  : int
Maximum lifetime of a session in seconds; refreshes never extend a session past this.
$refreshTokenTtlSeconds  : int
Lifetime of each rotated refresh token in seconds.

Methods

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

Properties

$maxAgeSeconds

Maximum lifetime of a session in seconds; refreshes never extend a session past this.

public int $maxAgeSeconds

Methods

__construct()

public __construct(int $maxAgeSeconds, int $accessTokenTtlSeconds, int $refreshTokenTtlSeconds) : mixed
Parameters
$maxAgeSeconds : int
$accessTokenTtlSeconds : int
$refreshTokenTtlSeconds : int

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

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

Search results