I am working on Laravel 7 and for social login I am using Socialite package. I am following this article for reference and did exactly the same but I am getting an unauthorized response with a message - "Bad Credentials". I have also tried resetting the secret key.
Thanks for the response.
Aside from making sure that your client_id
and client_secret
are set correctly, you also need to ensure that your redirect
value in your config/services.php
:
'github' => [
'client_id' => env('GITHUB_CLIENT_ID'),
'client_secret' => env('GITHUB_CLIENT_SECRET'),
'redirect' => 'http://yourapp.test/login/github/callback'
],