Not sure if this the right place to write the issue since there's no way to put in laravel/socialite repo. Knowing that the lumen, doesn't work in the session. How do I solve this using socialite package in Lumen?
Error: "Session store not set on request".
Access this method
public function redirectToProvider($provider)
{
return Socialite::driver($provider)->redirect();
}
@GrahamCampbell @taylorotwell
@GrahamCampbell do you have any suggestions?
@pmventura try use
return Socialite::driver($provider)->stateless()->redirect();
@F1NaL
I got an error. Here's the response
{"message":"Call to undefined method Symfony\\Component\\HttpFoundation\\RedirectResponse::header()","status_code":500}
Try composer require illuminate/routing
Try composer require illuminate/routing
Definitely should not be needed on Lumen.
Lumen is not really designed for sessions to work I think?
As i now Lumen designed for API service. Look to jwt token for auth users
@F1NaL @GrahamCampbell
Does it mean that there's no way to fix laravel socialite in Lumen? I'm still stucked on this.
My Socialite works perfectly
public function redirectToLinkedin()
{
return Socialite::driver('linkedin')->stateless()->redirect();
}
I do use that with laravel/socialite with no extra.
@pmventura Since that's no bug. I suggest you to close this thread.
Most helpful comment
My Socialite works perfectly
I do use that with
laravel/socialitewith no extra.@pmventura Since that's no bug. I suggest you to close this thread.