felangel / fresh

🍋 A token refresh library for Dart.
https://github.com/felangel/fresh
359 stars 56 forks source link

fix(fresh_graphql): refresh token on server exception #84

Closed ninogjoni closed 3 months ago

ninogjoni commented 1 year ago

If the token expires, it is not intercepted. Therefore, I put it in a try catch, so that in a Server Exception the new tokens are requested.

felangel commented 1 year ago

Hi @ninogjoni 👋 Thanks for the contribution! Are you able to resolve the conflicts and add some tests?

felangel commented 3 months ago

Closing this for now since it's been quite some time since this was last updated. If this is still an issue, I'd love to start by taking a look at a reproduction sample and then happy to work on a fix 👍