0

I'm getting user Information after sign in LinkedIn with laravel Socialite package. I'm using lumen, after confirming the permissions from login screen it's giving me error. Although I have set my default guard to session in auth.php file. Error

RuntimeException 
Session store not set on request. 

in my services.php i'm using linkedIn provider

'linkedin' => [
'client_id' => 'dafasdfads',
'client_secret' => 'adsfadsfas',
'redirect' => 'http://myapp.temp/callback/linkedin'
],

My routes.php

$router->get('/redirect/{provider}', 'socialcontroller@redirect');
$router->get('/callback/{provider}', 'socialcontroller@callback');

My Controller file is

public function callback($provider)
{
    return Socialite::driver($provider)->user();
}
Muhammad
  • 339
  • 3
  • 22

0 Answers0