HomePhabricator
Diffusion Comm 498694469f9f

[lib] Make invalidSessionRecovery work with all recoveryActionSources handled…

Description

[lib] Make invalidSessionRecovery work with all recoveryActionSources handled by KeyserverConnectionHandler

Summary:
All of recoveryActionSourcess handled by KeyserverConnectionHandler have been unified to use the same code. This means that if invalidSessionRecovery works for two of them, it should work with all of them.

Depends on D11501

Test Plan:

  1. Careful inspection of codepaths to confirm that these action sources are handled in the same way
  2. Checked changing the Flow type of actionCurrentUserInfo in invalidSessionRecovery to be a required param. Inspected new type errors to confirm that they would not occur here
  3. Same testing as the rest of the stack:
    1. Set up multi-keyserver environment following Notion doc
    2. Test native keyserver recovery via keyserverAuth by deleting a cookie in MariaDB console
    3. Hardcode incorrect userID, try same test as B, and confirm that it fails
    4. Test web keyserver recovery in the same way as in B
    5. Test incorrect userID on web in the same way as in C

Reviewers: tomek, inka

Reviewed By: tomek

Differential Revision: https://phab.comm.dev/D11502