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
F3375601: D12327.id41033.diff
Tue, Nov 26, 8:47 PM
Unknown Object (File)
Sat, Nov 23, 6:48 AM
Unknown Object (File)
Sat, Nov 16, 10:12 AM
Unknown Object (File)
Sun, Nov 10, 1:38 AM
Unknown Object (File)
Oct 16 2024, 6:15 AM
Unknown Object (File)
Oct 16 2024, 4:02 AM
Unknown Object (File)
Oct 15 2024, 4:55 PM
Unknown Object (File)
Oct 15 2024, 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

Need this for Flow to properly recognize payload type

native/profile/secondary-device-qr-code-scanner.react.js
128–152

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