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
F5292664: D14521.id47686.diff
Mon, Apr 7, 6:57 PM
F5288744: D14521.diff
Mon, Apr 7, 4:04 PM
F5288698: D14521.id47686.diff
Mon, Apr 7, 3:58 PM
F5287401: D14521.diff
Mon, Apr 7, 1:02 PM
Unknown Object (File)
Sun, Apr 6, 10:50 PM
Unknown Object (File)
Sun, Apr 6, 3:38 PM
Unknown Object (File)
Sun, Apr 6, 1:44 PM
Unknown Object (File)
Sun, Apr 6, 12:46 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable