class TokenSet

Methods

__construct(string $accessToken, string|null $refreshToken = null, int|null $expiresAt = null, string $tokenType = 'Bearer', string|null $scope = null, string|null $clientId = null, string|null $clientSecret = null)

Create a token set and its associated client credentials.

static TokenSet
fromResponse(array $data)

Create a token set from an authorization server response.

Details

at line 14
__construct(string $accessToken, string|null $refreshToken = null, int|null $expiresAt = null, string $tokenType = 'Bearer', string|null $scope = null, string|null $clientId = null, string|null $clientSecret = null)

Create a token set and its associated client credentials.

Parameters

string $accessToken
string|null $refreshToken
int|null $expiresAt
string $tokenType
string|null $scope
string|null $clientId
string|null $clientSecret

at line 33
static TokenSet fromResponse(array $data)

Create a token set from an authorization server response.

Parameters

array $data

Return Value

TokenSet