Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lumen 10 with passport does not work #186

Open
AmitSenjaliya opened this issue Sep 17, 2024 · 0 comments
Open

Lumen 10 with passport does not work #186

AmitSenjaliya opened this issue Sep 17, 2024 · 0 comments

Comments

@AmitSenjaliya
Copy link

AmitSenjaliya commented Sep 17, 2024

I want to upgrade lumen version from ^6.0 to ^10.0. (PHP 8.3)

First error i have encounter is Call to undefined method Laravel\Lumen\Routing\Router::middleware() So i have changed AuthServiceProvider and added Passport::$registersRoutes = false; It is working and error has gone.

Now when i tried to get access token then below error found.
Server error: POST /oauth/tokenresulted in a500 Internal Server Error response:\n{\n \"message\": \"Undefined property: Dusterio\\\\LumenPassport\\\\Http\\\\Controllers\\\\AccessTokenController::$jwt\"

When i have debug AccessTokenController then found $token = $this->jwt->parse($payload['access_token']); Line where jwt property undefined and not able to find parse() method.

Laravel passport AccessTokenController controller does not have $jwt property.
I think this may be deprecated. What is the solution for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant