dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
655 stars 141 forks source link

I got 500 internal error, but token generated #132

Closed MitulShah1 closed 2 years ago

MitulShah1 commented 4 years ago

I am using Resources owner method , and i just pass username/password in login form and from background using guzzlehttp i pass client id and client secret, Its generate access token i can see in db.

https://prnt.sc/rk15hy

But response coming 500 internal error,

i am using middleware to allow Cors.

here is my CorsMiddleware.php code,

`/**

Now if i comment Cors middleware from bootstrap/app.php

$app->middleware([ App\Http\Middleware\CorsMiddleware::class ]);

its working fine, can you please tell me whats wrong i am doing ?