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
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