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(fresh_graphql): should refresh before forwarding request #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhaoterryy
Copy link

Thanks for the package @felangel!

Using fresh_graphql + ferry I noticed that the access token never refreshes if it had already expired. This seems to be happening due to forward() being called before the refresh logic happens (_shouldRefresh()). Ultimately this means that if the user steps away and the token expires, it never gets refreshed.

These changes seem to work fine with ferry but I'm happy to make changes as needed for other graphql clients.

@zhaoterryy zhaoterryy requested a review from felangel as a code owner November 14, 2024 21:18
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.

1 participant