public function GoogleAuthManager::getAccessToken in Social Auth Google 8
1 call to GoogleAuthManager::getAccessToken()
File
- src/
GoogleAuthManager.php, line 56
Class
- GoogleAuthManager
- Manages the authentication requests.
Namespace
Drupal\social_auth_googleCode
public function getAccessToken() {
if (!$this->accessToken) {
$this->accessToken = $this->client
->fetchAccessTokenWithAuthCode($this
->getCode());
}
return $this->accessToken;
}