Page MenuHomePhabricator

[lib][native] refactor login/restore hooks to return `IdentityAuthResult`
ClosedPublic

Authored by kamil on Thu, Apr 3, 3:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 5:20 AM
Unknown Object (File)
Fri, Apr 18, 5:01 AM
Unknown Object (File)
Tue, Apr 15, 9:44 PM
Unknown Object (File)
Tue, Apr 15, 2:11 PM
Unknown Object (File)
Mon, Apr 14, 8:07 AM
Unknown Object (File)
Sun, Apr 13, 5:04 PM
Unknown Object (File)
Sun, Apr 13, 6:00 AM
Unknown Object (File)
Sat, Apr 12, 6:14 PM
Subscribers

Details

Summary

Part of ENG-10477

To be able to restore in here, we need to get auth metadata. We can't just call getAuthMetadata because we need to wait for re-render to make sure the store is populated.

We can:

  1. Update performLogIn to return CSAT and userID
  2. Implement some waiting logic to execute restore after store is populated with auth metadata, but this is complicated, and we need to deal with many race conditions.

I implemented option 1.

Depends on D14520

Test Plan

Flow, log returned value during secondary device auth

Diff Detail

Repository
rCOMM Comm
Branch
backup-publish
Lint
No Lint Coverage
Unit
No Test Coverage