You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add the user authentication token as query param to URI, but the token has short lifetime, while trying reconnect after token expires, there is no way to update the token, it will stuck looping.
WebSocket(
uri: () =>"wss://localhost/?_token=xxxxx", // we can use the callback to retrieve valid token before connects.
);
Requirements
A function to generate URI before every connect happens.
Additional Context
No.
The text was updated successfully, but these errors were encountered:
Plus one as I'm also in need of this.
In my case the jwt token is sent in the request headers, not the Uri, but the same principle applies - if we could have a way to update the request (Uri / headers etc.) before reconnecting, that would be really helpful.
Description
I want to add the user authentication token as query param to URI, but the token has short lifetime, while trying reconnect after token expires, there is no way to update the token, it will stuck looping.
Requirements
Additional Context
No.
The text was updated successfully, but these errors were encountered: