Oct 15, 2021
0
Level 1
error in socialite
I have a problem with google authentication, in facebook it works correctly
{"exception":"[object] (Laravel\Socialite\Two\InvalidStateException(code: 0): at /vendor/laravel/socialite/src/Two/AbstractProvider.php:236)
public function redirect($provider)
{
return Socialite::driver($provider)->redirect();
}
public function login(Request $request, $provider)
{
$user = Socialite::driver($provider)->user();
I tried to set SESSION_STORE but it didn't work, I tried to use stateless() it didn't work either. if I do dd($request->all()); I can see all the data correctly.
I just can't find the solution
Please or to participate in this conversation.