src/Synapse/SocialLogin/SocialLoginService.php
public function handleLogin(UserEntity $user)
    {
        $accessToken = new AccessToken($this->tokenStorage, $this->tokenStorage);
        $token = $accessToken->createAccessToken('', $user->getId(), null, true);

        return $token;
    }
public function handleLogin(UserEntity $user)
    {
        $accessToken = new AccessToken($this->tokenStorage, $this->tokenStorage);
        $token = $accessToken->createAccessToken('', $user->getId(), null, true);

        return $token;
    }
public function handleLogin ( UserEntity $ user ) { $ accessToken = new AccessToken ( $ this -> tokenStorage , $ this -> tokenStorage ) ; $ token = $ accessToken -> createAccessToken ( '' , $ user -> getId ( ) , null , true ) ; return $ token ; }
Create an access token given a user entity

@param  UserEntity   $user
@return array        Access token
Create an access token given a user entity