You are here

public function OAuth2Manager::setAccessToken in Social Auth 8

Sets the default access token.

Parameters

mixed $access_token: The access token.

Return value

$this The current object.

Overrides OAuth2ManagerInterface::setAccessToken

File

src/AuthManager/OAuth2Manager.php, line 51

Class

OAuth2Manager
Defines a basic OAuth2Manager.

Namespace

Drupal\social_auth\AuthManager

Code

public function setAccessToken($access_token) {
  $this->accessToken = $access_token;
  return $this;
}