Page MenuHomePhabricator

[lib][native] Send backup keys in QR auth only if requested
ClosedPublic

Authored by bartek on Jun 6 2024, 2:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 16, 6:15 AM
Unknown Object (File)
Wed, Oct 16, 4:02 AM
Unknown Object (File)
Tue, Oct 15, 4:55 PM
Unknown Object (File)
Tue, Oct 15, 4:55 PM
Unknown Object (File)
Tue, Oct 15, 4:55 PM
Unknown Object (File)
Tue, Oct 15, 4:55 PM
Unknown Object (File)
Tue, Oct 15, 4:55 PM
Unknown Object (File)
Tue, Oct 15, 4:55 PM
Subscribers

Details

Summary

Addresses ENG-8225.
Added a boolean to SECONDARY_DEVICE_REGISTRATION_SUCCESS message that determines if backup keys should be sent.
For keyserver, it can be set to false in D12213.

Test Plan

QR login on native and web. Verified that backup keys are sent, unless hardcoding the flag to false.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jun 6 2024, 5:56 AM
bartek added inline comments.
native/profile/secondary-device-qr-code-scanner.react.js
118–120 ↗(On Diff #41033)

Need this for Flow to properly recognize payload type

native/profile/secondary-device-qr-code-scanner.react.js
128–152 ↗(On Diff #41033)

I would reverse this condition and reduce indentation. See here

Otherwise seems reasonable

This revision is now accepted and ready to land.Jun 6 2024, 10:45 AM

Reverse condition to reduce indent

native/profile/secondary-device-qr-code-scanner.react.js
123 ↗(On Diff #41367)

You missed a return here, so now this diff doesn't really do what it was supposed to (backup logic still executes)

This revision is now accepted and ready to land.Jun 17 2024, 6:38 AM

Add missing return statement