trait ParsesOAuthTokenResponses

Methods

array
parseOAuthTokenResponse(Response $response)

Parse the access token, expiry and data of a token response.

array|null
resolveOAuthScopes(mixed $scopes)

Resolve the scopes reported by the provider.

resolveOAuthExpiry(mixed $expiresIn)

Resolve an OAuth token expiry.

Details

at line 25
protected array parseOAuthTokenResponse(Response $response)

Parse the access token, expiry and data of a token response.

Parameters

Response $response

Return Value

array

at line 42
protected array|null resolveOAuthScopes(mixed $scopes)

Resolve the scopes reported by the provider.

Parameters

mixed $scopes

Return Value

array|null

at line 60
protected CarbonImmutable|null resolveOAuthExpiry(mixed $expiresIn)

Resolve an OAuth token expiry.

Parameters

mixed $expiresIn

Return Value

CarbonImmutable|null