Mav23Sa's avatar

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

0 likes
0 replies

Please or to participate in this conversation.