Igor Simic
8 months ago

#laravel socialite Google auth error "Missing required parameter: code" Here is how to fix it:

                    //instead of
return Socialite::driver('google')->redirect();

//use
return Socialite::driver('google')->setScopes(['openid', 'email'])->redirect();
                  

it is the scope issue 😎