You are here

public function LinkedinAuthManager::getAccessToken in Social Auth LinkedIn 8

1 call to LinkedinAuthManager::getAccessToken()
LinkedinAuthManager::authenticate in src/LinkedinAuthManager.php

File

src/LinkedinAuthManager.php, line 55

Class

LinkedinAuthManager
Manages the authentication requests.

Namespace

Drupal\social_auth_linkedin

Code

public function getAccessToken() {
  if (!$this->accessToken) {
    $this->accessToken = $this->client
      ->getAccessToken($this
      ->getCode());
  }
  return $this->accessToken;
}