Page MenuHomePhabricator

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

Authored by kamil on Jun 17 2024, 2:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 1:37 PM
Unknown Object (File)
Fri, Nov 1, 1:47 PM
Unknown Object (File)
Oct 27 2024, 7:30 PM
Unknown Object (File)
Oct 12 2024, 12:01 PM
Unknown Object (File)
Oct 12 2024, 12:01 PM
Unknown Object (File)
Oct 12 2024, 12:01 PM
Unknown Object (File)
Oct 12 2024, 12:01 PM
Unknown Object (File)
Oct 12 2024, 12:01 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.Jun 17 2024, 4:33 AM
This revision is now accepted and ready to land.Jun 17 2024, 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)