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:
- The keyserver session recovery will conclude successfully and set a correct cookie and currentUserInfo.
- 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