public logIn ( ) : |
||
return | An object representing the now-logged-in user |
public function logIn()
{
$options = ['form_params' => ['machine_token' => $this->get('token'), 'client' => 'terminus'], 'method' => 'post'];
$response = $this->request->request('authorize/machine-token', $options);
$this->session()->setData((array) $response['data']);
return $this->session->getUser();
}