You are here

public function AuthManagerInterface::getAccessToken in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()
  2. 8.2 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()
  3. 8.3 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()
  4. 8.4 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()
  5. 8.5 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()
  6. 8.6 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()
  7. 8.7 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()
  8. 8.8 modules/custom/social_auth_extra/src/AuthManagerInterface.php \Drupal\social_auth_extra\AuthManagerInterface::getAccessToken()

Reads user's access token from social network.

Parameters

string $type: Type of action. "login" or "register".

Return value

object User's access token, if it could be read from social network. Null, otherwise.

4 methods override AuthManagerInterface::getAccessToken()
FacebookAuthManager::getAccessToken in modules/custom/social_auth_facebook/src/FacebookAuthManager.php
Reads user's access token from social network.
GoogleAuthManager::getAccessToken in modules/custom/social_auth_google/src/GoogleAuthManager.php
Reads user's access token from social network.
LinkedInAuthManager::getAccessToken in modules/custom/social_auth_linkedin/src/LinkedInAuthManager.php
Reads user's access token from social network.
TwitterAuthManager::getAccessToken in modules/custom/social_auth_twitter/src/TwitterAuthManager.php
Reads user's access token from social network.

File

modules/custom/social_auth_extra/src/AuthManagerInterface.php, line 56

Class

AuthManagerInterface
Interface AuthManagerInterface.

Namespace

Drupal\social_auth_extra

Code

public function getAccessToken($type);