HomePhabricator
Diffusion Comm 7b3fd475e97a

[lib][web][native] Pass preRequestUserState into invalidSessionRecovery

Description

[lib][web][native] Pass preRequestUserState into invalidSessionRecovery

Summary:
issue: ENG-6126
We want to cross reference the user info from before the action was called with the current user info, to check if the same user is still logged in. Otherwise we could end up overriding a new users session with a recovery that was startd for the previous user.

Test Plan:
Tested on both platforms that normal logins and loguts work as expected
Tested on native that if a COOKIE_INVALIDATION_RESOLUTION_ATTEMPT login with a different user id is dispatched, then the action is disregarded

Reviewers: tomek, ginsu

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
inkaAuthored on Thu, Apr 11, 5:37 AM
Reviewer
tomek
Differential Revision
D11632: [lib][web][native] Pass preRequestUserState into invalidSessionRecovery
Parents
rCOMMabe65dc59251: [lib] Stop attempting recovery when client version unsupported
Branches
Unknown
Tags
Unknown