TokenQuery
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $clientId : string
- The client ID of the WorkOS environment.
- $clientSecret : string
- The client secret of the WorkOS environment.
- $code : string
- The authorization code received from the authorization callback.
- $grantType : string
- The grant type for the token request.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$clientId
The client ID of the WorkOS environment.
public
string
$clientId
$clientSecret
The client secret of the WorkOS environment.
public
string
$clientSecret
$code
The authorization code received from the authorization callback.
public
string
$code
$grantType
The grant type for the token request.
public
string
$grantType
Methods
__construct()
public
__construct(string $clientId, string $clientSecret, string $code, string $grantType) : mixed
Parameters
- $clientId : string
- $clientSecret : string
- $code : string
- $grantType : string
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>