Page MenuHomePhabricator

[web][native] extract QR code login functions to separate files
ClosedPublic

Authored by kamil on Mon, Jun 17, 2:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 11:04 PM
Unknown Object (File)
Mon, Jun 24, 9:22 PM
Unknown Object (File)
Mon, Jun 24, 5:08 PM
Unknown Object (File)
Sun, Jun 23, 4:01 PM
Unknown Object (File)
Sun, Jun 23, 2:51 PM
Unknown Object (File)
Sun, Jun 23, 11:09 AM
Unknown Object (File)
Sat, Jun 22, 4:02 PM
Unknown Object (File)
Sat, Jun 22, 12:28 PM
Subscribers

Details

Summary

ENG-8385.

QR code login is not working right now. As described here (Point 3) and here the issue is, because of the fact that useQRAuth is unmounting before it can send SECONDARY_DEVICE_REGISTRATION_SUCCESS. This stack is refactoring the code to move logic to context (see here).

This diff purpose is to move some functions to separate places to later pass it as props to a context.

Depends on D12440

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Mon, Jun 17, 4:33 AM
This revision is now accepted and ready to land.Mon, Jun 17, 4:41 AM
ashoat added inline comments.
native/qr-code/qr-code-utils.js
63 ↗(On Diff #41380)

In JS, there's no guarantee that something thrown is an Error.

web/utils/qr-code-utils.js
58 ↗(On Diff #41380)

Same here

61 ↗(On Diff #41380)