Page MenuHomePhabricator

[native] Use unified keyserver session recovery in LoggedOutModal
ClosedPublic

Authored by ashoat on Mar 3 2024, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 12:03 PM
Unknown Object (File)
Oct 29 2024, 11:48 AM
Unknown Object (File)
Oct 26 2024, 12:13 PM
Unknown Object (File)
Oct 4 2024, 3:44 AM
Unknown Object (File)
Oct 4 2024, 3:44 AM
Unknown Object (File)
Oct 4 2024, 3:44 AM
Unknown Object (File)
Oct 4 2024, 3:43 AM
Unknown Object (File)
Sep 26 2024, 5:48 PM
Subscribers
None

Details

Summary

Instead of dispatching a call from the LoggedOutModal, we should use the unified mechanism owned by KeyserverConnectionHandler. This way, we can avoid multiple simultaneous recoveries being dispatched at once.

resetUserStateActionType will be deprecated in the next diff. It's okay to remove this because when we flip sessionRecoveryInProgress to true, one of two things will happen:

  1. The keyserver session recovery will conclude successfully and set a correct cookie and currentUserInfo.
  2. The keyserver session recovery will fail and trigger a session invalidation via SET_NEW_SESSION, which will result in both cookie and currentUserInfo being cleared.

Depends on D11212

Test Plan

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable