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

Why does the token expire when the page refreshes? #4

Closed
jay7793 opened this issue Jan 19, 2018 · 4 comments
Closed

Why does the token expire when the page refreshes? #4

jay7793 opened this issue Jan 19, 2018 · 4 comments

Comments

@jay7793
Copy link

jay7793 commented Jan 19, 2018

Token will expire immediately when I try to refresh the page. I do not know if it's due to my application malfunction or whether it's normal for the token.

Thank you.

@cretueusebiu
Copy link
Owner

cretueusebiu commented Jan 19, 2018

The ttl of the token is 60 minutes by default.

If it expires immediately there's something wrong with the app. Are you using the current template or you have a custom build ?

@jay7793
Copy link
Author

jay7793 commented Jan 19, 2018

I think the problem is probably due to my development environment. I'm not sure what the problem is coming from Laravel because there is no error on the client side.

I'm using current template.

@jay7793
Copy link
Author

jay7793 commented Jan 20, 2018

Hi,
I solved the problem by re-generate jwt token using php artisan jwt:secret command

@cretueusebiu
Copy link
Owner

When you install the project via composer it will run that command for you. But if you just clone it you'll have to run it manually (as you do with php artisan key:generate).

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