You are here

public function OAuth2Manager::getAccessToken in Social API 8.2

Same name and namespace in other branches
  1. 3.x src/AuthManager/OAuth2Manager.php \Drupal\social_api\AuthManager\OAuth2Manager::getAccessToken()

Gets the access token after authentication.

Return value

\League\OAuth2\Client\Token\AccessToken|mixed The access token.

Overrides OAuth2ManagerInterface::getAccessToken

File

src/AuthManager/OAuth2Manager.php, line 95

Class

OAuth2Manager
Defines basic OAuth2Manager to be used by social auth and social post.

Namespace

Drupal\social_api\AuthManager

Code

public function getAccessToken() {
  return $this->accessToken;
}