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

Fix gui not redirecting to login page if token expired #62

Open
holandes22 opened this issue Jan 30, 2015 · 1 comment
Open

Fix gui not redirecting to login page if token expired #62

holandes22 opened this issue Jan 30, 2015 · 1 comment

Comments

@holandes22
Copy link
Owner

After closing the tab, the session remains authenticated (meaning still stores the token), but opening a new tab (which uses that session) and browsing to something that sends a request to the backend, will produce a loading state that doesn't finish. We need to catch the server error in case of expired token

@holandes22
Copy link
Owner Author

Apparently this is related to the token expiration time being too low. default is 5.

We can, for simplicity just disable the token refresh. Or live it, and the client needs to be clever enough to request a new token after expiration

See http://getblimp.github.io/django-rest-framework-jwt/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant