Page MenuHomePhabricator

[native] Add JSI bindings for LogInExistingDevice RPC
ClosedPublic

Authored by bartek on Mar 28 2024, 11:04 PM.
Tags
None
Referenced Files
F3502504: D11470.id38704.diff
Fri, Dec 20, 4:21 AM
F3499663: D11470.diff
Thu, Dec 19, 11:54 PM
Unknown Object (File)
Mon, Dec 16, 9:38 AM
Unknown Object (File)
Thu, Nov 21, 11:26 PM
Unknown Object (File)
Nov 13 2024, 12:45 AM
Unknown Object (File)
Nov 12 2024, 10:39 PM
Unknown Object (File)
Oct 20 2024, 5:03 AM
Unknown Object (File)
Oct 18 2024, 6:26 PM
Subscribers

Details

Summary

Exposed the LogInExistingDevice to JS - added it to CommRustModule

Depends on D11469

Test Plan

Called the RPC from JS on native. Repeated test plan from D11466.
Additionally, triggering commCoreModule.setCommServicesAuthMetadata() with the new token is able to refresh user session

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.Mar 29 2024, 12:19 AM
bartek added inline comments.
native/cpp/CommonCpp/NativeModules/CommRustModule.cpp
593 ↗(On Diff #38533)

A leftover dead code, the actual return createPromiseAsJSIValue is called at L567

This revision is now accepted and ready to land.Apr 1 2024, 9:35 PM