holandes22 / rafee

1 stars 1 forks source link

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

Open holandes22 opened 9 years ago

holandes22 commented 9 years ago

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 commented 9 years ago

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/