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
$accessToken
The access token from the OAuth provider.
public
string
$accessToken
$expiresAt
The timestamp at which the access token expires.
public
int
$expiresAt
$provider
The OAuth provider used for authentication.
public
string
$provider
$refreshToken
The refresh token from the OAuth provider.
public
string
$refreshToken
$scopes
A list of OAuth scopes for which the access token is authorized.
public
array<string|int, string>
$scopes
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
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>