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

Token is no longer accepted after some time, only with a new "validate token" request #1204

Closed
LeoGardel opened this issue Aug 22, 2018 · 0 comments

Comments

@LeoGardel
Copy link

Sometimes (I still don't get what exactly causes this behavior), after many successful requests, the token my front-end has seems to have expired, given that the devise-token-auth api is responding with a 401 error, but the expiry is far from reaching 0. The strangest part is that if I just refresh my page (which fires a "validate token" request to the backend), my frontend sends the exact same token that was being rejected and the backend is responding with 200. All the following requests from this point are working correctly, until this whole thing start happening again.

Any idea about what could cause that and how to solve it?

Using devise_token_auth 0.1.43
I developed the frontend integration by myself...

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