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
The websocket connection can quietly drop without recovery. This happens often when a native app is brought from background after token has expired, but can happen outside of this context as well.
Walkthrough
Once token authenticate succeeds, a refetch is scheduled for just before the new token expires.
Around the time of the scheduled refetch, the user initiates a query or mutation with the near-expired token.
The server finds the token to be expired and returns an auth error.
Bug
The websocket connection can quietly drop without recovery. This happens often when a native app is brought from background after token has expired, but can happen outside of this context as well.
Walkthrough
The socket remains closed. Authentication state is unchanged, client appears authenticated to the user.
Root cause
tryToReauthenticate()
no longer restarts the socket as of this commit: 27fe643#diff-d191fc16ddb7007da8373029e3fc1610dfa34b8d95aa26652313bd672ec52699L227. AtryToReauthenticate()
that is followed by arefetchToken()
This change was clearly purposeful, maybe a team member can shed some light?
The text was updated successfully, but these errors were encountered: