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

Fix the demo/passport branch #9

Open
wants to merge 2 commits into
base: demo/passport
Choose a base branch
from

Conversation

TAnas0
Copy link

@TAnas0 TAnas0 commented Aug 7, 2023

When trying to login on the demo/passport branch, the POST request fails with a 500 error response and the following error message:

{
    "message": "Target [Lcobucci\\JWT\\Parser] is not instantiable while building [Laravel\\Passport\\PersonalAccessTokenFactory].",
    "exception": "Illuminate\\Contracts\\Container\\BindingResolutionException",
    ....
}

This a fix for this issue which was all based on the following:

TAnas0 added 2 commits August 7, 2023 18:28
Done using `composer update`
This is a fix of an error raised when calling $user()->createToken().
See the following for further details on the bug and fix:
- laravel/passport#1381
- https://stackoverflow.com/questions/65017721/laravel-passport-target-lcobucci-jwt-parser-is-not-instantiable-while-buildin
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

Successfully merging this pull request may close these issues.

1 participant