Closed cristiano-pacheco closed 7 years ago
OK @cristianopacheco so I run your branch locally and everything is working fine.
What's your question regarding token refreshing?
i will accept this PR and make a implementation for the proposed problem
@cristianopacheco if is possible, make a issue with this question.
This PR was reverted because it contains non working code.
LoginController renamed to AuthController
The authentication route was changed to /auth/issue (suggestion @hernandev ), this change was reflected in the client.
Added method to revoke token
Added method to update token
The authentication middleware now used is the jwt library, Because with the standard laravel middleware, it is not possible to identify when the token is expired.
I talked to @vedovelli about the refresh token feature on the client, so we will open a discussion in this PR on how to implement this feature.
I will give an example of how the api returns the response signaling that the token is expired.