Skip to content
Advertisement

Laravel 5.4 Passport: unsupported_grant_type

Hello I try to do a web application and I have a problem. When I request the token from /oauth/token I receive this response:

JavaScript

And my code is:

JavaScript

And the request header:

JavaScript

Response header:

JavaScript

Post data:

JavaScript

I don’t have any other detail.

Advertisement

Answer

You need to install a password client for Passport. Assuming you’ve installed and configured Passport, to generate a password client, run:

JavaScript

Make sure to use the details from the output of this command in your API requests.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement