Repository navigation
Conversation
signOut(scope: global) removed the local session only when the stored tokens and the session version were unchanged after the logout request. A refresh of the same session that landed while the request was in flight changed both, so the server revoked every session while the device stayed signed in with no signedOut event, until its dead refresh token failed about an hour later. The device now signs out when the stored session is still the revoked server session: the same tokens, or the same session_id claim, which a refresh keeps and a new sign-in changes.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
signOut(scope: global)now signs this device out when a refresh of the same session landed while the logout request was in flight. Before, the refresh changed the stored tokens and the session version, so the device stayed signed in after the server had revoked its session.Closes #2262
session_idclaim in its access token. A refresh keeps thesession_idand a new sign-in gets a new one, so a sign-in or sign-out that happened during the request still wins, as thesignOutdoc says.session_idclaim falls back to the token comparison, so the existing test that keeps a sign-in made during the request passes unchanged._refreshForSignOuthands back an unstored session because a concurrent refresh stored one first.userInitiated, and fails without the fix; a new session of the same user, with anothersession_id, stays signed in.Summary by CodeRabbit