Ensures that the current access token is valid by attempting a refresh if needed. This should be called before critical operations like WebSocket authentication.
The current valid access token, or null if refresh failed
Ensures that the current access token is valid by attempting a refresh if needed. This should be called before critical operations like WebSocket authentication.