src/Controllers/GithubLoginController.php
protected function loginUser($user)
    {
        $this->session->put(
            config('pagekit.session_key', 'pagekit_session'), [
                'github_id' => $user->id,
                'github_name' => $user->name,
                'github_email' => $user->email
            ]
        );
            $this->session->save();

    }
protected function loginUser($user)
    {
        $this->session->put(
            config('pagekit.session_key', 'pagekit_session'), [
                'github_id' => $user->id,
                'github_name' => $user->name,
                'github_email' => $user->email
            ]
        );
            $this->session->save();

    }
protected function loginUser ( $ user ) { $ this -> session -> put ( config ( 'pagekit.session_key' , 'pagekit_session' ) , [ 'github_id' => $ user -> id , 'github_name' => $ user -> name , 'github_email' => $ user -> email ] ) ; $ this -> session -> save ( ) ; }
Checks if the user credentials matches the credentials stored
in the config

@param $user
Checks if the user credentials matches the credentials stored in the config