Search code examples
laraveloauth-2.0laravel-passport

laravel passport doesnt support authorization grant type?


I am having an issue using the authorization grant in laravel/passport. I usually get this error:

{"error":"unsupported_grant_type","message":"The authorization grant type is not supported by the authorization server.","hint":"Check the grant_type parameter"}

First of all it takes me to login page, when i login it throws the above error. However the password grant works fine.

I created my client using: php artisan passport:client


Solution

  • try body raw and Content-Type application/json

    Passport consume service