public function userFromToken(string $token)
    {
        $user = $this->mapUserToObject($this->getUserByToken($token));
        return $user->setToken($token);
    }
public function userFromToken(string $token)
    {
        $user = $this->mapUserToObject($this->getUserByToken($token));
        return $user->setToken($token);
    }
public function userFromToken ( string $ token ) { $ user = $ this -> mapUserToObject ( $ this -> getUserByToken ( $ token ) ) ; return $ user -> setToken ( $ token ) ; }
Get a Social User instance from a known access token.

@param string $token
@return \Socialite\Two\User
Get a Social User instance from a known access token .