WorkOS PHP SDK

SSOTokenResponse
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$accessToken  : string
An access token that can be exchanged for a user profile. Access tokens are short-lived — see the `expires_in` field for the exact lifetime.
$expiresIn  : int
The lifetime of the access token in seconds.
$oauthTokens  : SSOTokenResponseOAuthToken|null
OAuth tokens issued by the identity provider, if available.
$profile  : Profile
The user profile returned by the identity provider.
$tokenType  : string
The type of token issued.

Methods

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

Properties

$accessToken

An access token that can be exchanged for a user profile. Access tokens are short-lived — see the `expires_in` field for the exact lifetime.

public string $accessToken

$expiresIn

The lifetime of the access token in seconds.

public int $expiresIn

Methods

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>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results