You are here

public function JanrainCaptureApiInterface::getAccessToken in Janrain Registration 8

Returns an access token from the database and prolongs it automatically.

IMPORTANT: this method requires a user to be authenticated in Drupal.

Parameters

bool $force_refresh: An indicator to forcibly refresh an access token.

Return value

\Drupal\janrain_capture\Authentication\AccessToken The access token.

Throws

\InvalidArgumentException

\GuzzleHttp\Exception\GuzzleException

\Drupal\janrain_capture\Exception\JsonParseError

\Drupal\janrain_capture\Exception\JanrainApiCallError

\Drupal\janrain_capture\Exception\JanrainUnauthorizedError

1 method overrides JanrainCaptureApiInterface::getAccessToken()
JanrainCaptureApi::getAccessToken in src/JanrainCaptureApi.php
Returns an access token from the database and prolongs it automatically.

File

src/JanrainCaptureApiInterface.php, line 58

Class

JanrainCaptureApiInterface
The interface for implementing Janrain Capture authentication.

Namespace

Drupal\janrain_capture

Code

public function getAccessToken(bool $force_refresh = FALSE) : AccessToken;