class Token

Methods

__construct(string $token, string $refreshToken, int $expiresIn, array $approvedScopes)

Create a new token instance.

Details

at line 17
__construct(string $token, string $refreshToken, int $expiresIn, array $approvedScopes)

Create a new token instance.

Parameters

string $token

the user's access token

string $refreshToken

the refresh token that can be exchanged for a new access token

int $expiresIn

the number of seconds the access token is valid for

array $approvedScopes

The scopes the user authorized. The approved scopes may be a subset of the requested scopes.