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: 401 invalid token #28

Merged
merged 1 commit into from
Dec 23, 2024
Merged

fix: 401 invalid token #28

merged 1 commit into from
Dec 23, 2024

Conversation

martinohansen
Copy link
Contributor

The API returns an empty refresh token when a refresh call is made, causing subsequent calls to fail. This is fixed by updating the token with just the new access token and expiration time.

The API returns an empty refresh token when a refresh call is made,
causing subsequent calls to fail. This is fixed by updating the token
with just the new access token and expiration time.
@martinohansen
Copy link
Contributor Author

martinohansen commented Dec 21, 2024

@frieser sorry for all the PRs... the timings of these keys make it a bit hard to debug properly. I managed to run this version in a loop refreshing tokens and getting new ones for a while without issues. I think this is the last fix :)

P.s. This version is also a bit simpler

@frieser frieser merged commit 4bd54a9 into frieser:main Dec 23, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants