You are here

public function SocialAuthUser::setToken in Social Auth 3.x

Same name and namespace in other branches
  1. 8.2 src/User/SocialAuthUser.php \Drupal\social_auth\User\SocialAuthUser::setToken()

Sets the user's token.

Parameters

string $token: The user's token.

Overrides SocialAuthUserInterface::setToken

File

src/User/SocialAuthUser.php, line 191

Class

SocialAuthUser
User data used for authentication with Drupal.

Namespace

Drupal\social_auth\User

Code

public function setToken($token) {
  $this->token = $token;
}