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

How to Refresh a token without Prebuild Controller #7

Open
blueamazon opened this issue Nov 23, 2017 · 1 comment
Open

How to Refresh a token without Prebuild Controller #7

blueamazon opened this issue Nov 23, 2017 · 1 comment

Comments

@blueamazon
Copy link

blueamazon commented Nov 23, 2017

I am getting {"error":"Token is expired."} on hitting the same token can you please tell me how to refresh the old token without making a login request

@paulvl
Copy link
Owner

paulvl commented Nov 24, 2017

Please take a look at refresh method on pre-build controller
https://github.com/paulvl/jwt-guard/blob/master/src/Foundation/Auth/AuthenticatesUsers.php#L52

You need to understand JWT https://tools.ietf.org/html/rfc7519 first.
In order to refresh your token you need to use the "refresh" token instead.
You are free to look inside each file and see how it works before open an issue.

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

No branches or pull requests

2 participants