CargoSense / absinthe_client

A GraphQL client designed for Elixir Absinthe.
https://hexdocs.pm/absinthe_client
MIT License
74 stars 7 forks source link

Ability to refresh config on websocket reconnects to support bearer tokens expiring #12

Open poffdeluxe opened 1 year ago

poffdeluxe commented 1 year ago

Currently there doesn't seem like a great way to refresh auth credentials when the bearer token expires so the socket connection gets stuck in a 401/403 loop trying to reconnect once the token expires. Slipstream has an example of what something like this might look like: https://github.com/NFIBrokerage/slipstream/tree/main/examples/token_refresh

mcrumm commented 1 year ago

It's the first thing on my list after the holiday! :)