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)
Fri, Dec 20, 9:48 AM
Unknown Object (File)
Fri, Dec 20, 5:34 AM
Unknown Object (File)
Fri, Dec 20, 4:53 AM
Unknown Object (File)
Fri, Dec 20, 4:21 AM
Unknown Object (File)
Thu, Dec 19, 11:54 PM
Unknown Object (File)
Mon, Dec 16, 9:38 AM
Unknown Object (File)
Nov 21 2024, 11:26 PM
Unknown Object (File)
Nov 13 2024, 12:45 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
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