Page MenuHomePhabricator

[native] Add JSI bindings for LogInExistingDevice RPC
ClosedPublic

Authored by bartek on Mar 28 2024, 11:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 4:34 PM
Unknown Object (File)
Thu, Apr 11, 7:53 AM
Unknown Object (File)
Thu, Apr 11, 6:21 AM
Unknown Object (File)
Thu, Apr 11, 5:38 AM
Unknown Object (File)
Wed, Apr 10, 7:28 PM
Unknown Object (File)
Tue, Apr 9, 7:33 PM
Unknown Object (File)
Mon, Apr 8, 5:22 PM
Unknown Object (File)
Mon, Apr 8, 12:10 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.Mon, Apr 1, 9:35 PM