vdomah / oc-jwtauth

JWTAuth plugin for October CMS wich provides token based authentication
MIT License
27 stars 21 forks source link

php artisan jwt:generate does not work #19

Closed mark-cobra closed 3 years ago

mark-cobra commented 4 years ago

When I run the command I get this error

image

How can I fix this? Thanks

mark-cobra commented 4 years ago

I fixed it! Change the method fire() to handle() within \vendor\tymon\jwt-auth\src\Commands\JWTGenerateCommand.php

vdomah commented 4 years ago

Thanks for reporting, but that's bad fix you're proposing. Here is related issue from the Laravel package repo: https://github.com/tymondesigns/jwt-auth/issues/1644 Should use:

php artisan jwt:secret

Need to test this

alvaro-canepa commented 4 years ago

This issued will be fixed updating tymon/jwt-auth to 1.0. But newest version has changes. Like class \Tymon\JWTAuth\Providers\JWTAuthServiceProvider that doesn't exists.