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

Send user to home when localStorage token is expired for a long time #20

Open
fredmp opened this issue Feb 26, 2018 · 0 comments
Open

Comments

@fredmp
Copy link
Owner

fredmp commented Feb 26, 2018

Token is valid for 1 hour. A new token is provided every time user makes a request. If user is idle for more than 1 hour we should clean up localStorage credentials and:

1 - Send user to Home when idle for more than 5 hours
2 - Send user to Login when idle between 1 and 5 hours

Let's say: when user forget the tab idle for more than 1 hour, login screen is shown. But if user tries to access the site after a long time, home screen is shown.

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

1 participant