tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.28k stars 1.55k forks source link

how to totally implement jwt with refresh in the middleware? #1236

Open tjnapster555 opened 7 years ago

tjnapster555 commented 7 years ago

can somebody give me the link of the tutorial in which show how to actually implement the jwt with refresh token. I don't know a lot i am stuck i have no idea how to properly implement the jwt with refresh and error in the middle ware.

louis-marchant commented 7 years ago

If you are sending the token to the server as indicated in the docs, then at the bottom of this page there is information about some middleware to refresh the token.

You implement the middleware in the same way as you would implement any other middleware in Laravel, and a quick google will provide you with guides on how to do that.