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

Refresh access token on 401 response code #26

Closed
Drumber opened this issue Oct 20, 2023 · 0 comments
Closed

Refresh access token on 401 response code #26

Drumber opened this issue Oct 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Drumber
Copy link
Owner

Drumber commented Oct 20, 2023

Currently, the access token is only refreshed shortly before it expires. However, the access token may expire before the expected time (e.g. after changing the password). This causes all API requests to fail with a 401 response code, rendering the app unusable (unless you re-login).

To fix this, the access token should be updated when a 401 response code is received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant