'Laravel Passport error when login, use together with Laravel Socialite

I'm building 2 apps which 1 for the OAuth by using Laravel Passport and another app is using the Laravel Socialite with the Provider from https://socialiteproviders.com/Laravel-Passport/

I have set up all the route and have ran passport:install

enter image description here

enter image description here

And at the second application, I have install Laravel Socialite with provider.

Provider settings are also set in config and .env file enter image description here

But when I try to login, it show error as below, but I confirm that I can login normally using web in OAuth application

Client error: `POST http://localhost:8002/oauth/token` resulted in a `401 Unauthorized` response: {"error":"invalid_client","error_description":"Client authentication failed","message":"Client authentication failed"}

What am I missing? Any help is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source