WorkOS PHP SDK

AuthenticateResponseOAuthToken
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The OAuth tokens from the identity provider, if applicable.

Table of Contents

Interfaces

JsonSerializable

Properties

$accessToken  : string
The access token from the OAuth provider.
$expiresAt  : int
The timestamp at which the access token expires.
$provider  : string
The OAuth provider used for authentication.
$refreshToken  : string
The refresh token from the OAuth provider.
$scopes  : array<string|int, string>
A list of OAuth scopes for which the access token is authorized.

Methods

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

Properties

Methods

__construct()

public __construct(string $provider, string $refreshToken, string $accessToken, int $expiresAt, array<string|int, mixed> $scopes) : mixed
Parameters
$provider : string
$refreshToken : string
$accessToken : string
$expiresAt : int
$scopes : array<string|int, mixed>

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