Side note: the command jwt:secret updates your .env file with something like JWT_SECRET=secretkeystring.
jwt:secret
"It is the key that will be used to sign your tokens. How that happens exactly will depend on the algorithm that you choose to use."
now it's working. Thank you.
You are welcome
Hi Ndifreke, can you explain how to publish jwt library also need to token expire time and refresh token. thank you in advance.
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
The above command publishes the JWTAuth Package. Here's this thing, the vendor:publish command is not available in lumen. You can try using third party packages to pull this in ( github.com/laravelista/lumen-vendo... )
vendor:publish
For managing expiration time and refreshing tokens, this link should help out; jwt-auth.readthedocs.io/en/develop...
Hi Ndifreke, Thanks for reply. one more thing I need if you help me. you have any example for lumen with vue also include in jwt token use.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Side note: the command
jwt:secret
updates your .env file with something like JWT_SECRET=secretkeystring."It is the key that will be used to sign your tokens. How that happens exactly will depend on the algorithm that you choose to use."
now it's working. Thank you.
You are welcome
Hi Ndifreke,
can you explain how to publish jwt library also need to token expire time and refresh token. thank you in advance.
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"
The above command publishes the JWTAuth Package. Here's this thing, the
vendor:publish
command is not available in lumen.You can try using third party packages to pull this in ( github.com/laravelista/lumen-vendo... )
For managing expiration time and refreshing tokens, this link should help out; jwt-auth.readthedocs.io/en/develop...
Hi Ndifreke,
Thanks for reply. one more thing I need if you help me. you have any example for lumen with vue also include in jwt token use.