You are here

public function GoogleAuthManager::getUserInfo in Social Auth Google 8

Same name and namespace in other branches
  1. 8.2 src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getUserInfo()
  2. 3.x src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getUserInfo()

File

src/GoogleAuthManager.php, line 67

Class

GoogleAuthManager
Manages the authentication requests.

Namespace

Drupal\social_auth_google

Code

public function getUserInfo() {
  return $this
    ->getOauth2Service()->userinfo
    ->get();
}