I have this strange issue with using Laravel Socialite to log users in via Google API.
Everything configurations seem normal and ordinary, but I keep getting
error Missing required parameter: code
But in localhost works fine
Localhost:

Server:

URI de redirection autorisés http://example.com/subdir/auth/google/callback http://localhost:8000/auth/google/callback
After a long search, the solution is to remove the profile from scopes in vendor\laravel\socialite\src\Two\GoogleProvider.php
protected $scopes = [
'openid',
'email',
];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With