Page MenuHomePhabricator

[native][web] Expose Secondary device registration RPC to JS
ClosedPublic

Authored by bartek on Mar 11 2024, 6:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 4, 3:59 PM
Unknown Object (File)
Thu, Apr 3, 11:35 PM
Unknown Object (File)
Tue, Mar 18, 10:27 AM
Unknown Object (File)
Feb 27 2025, 10:08 PM
Unknown Object (File)
Feb 27 2025, 7:26 PM
Unknown Object (File)
Feb 27 2025, 7:26 PM
Unknown Object (File)
Feb 27 2025, 7:26 PM
Unknown Object (File)
Feb 27 2025, 7:26 PM
Subscribers

Details

Summary

Exposed this RPC via Identity context

Depends on D11290

Test Plan

This is tested later in further diffs. Now just ensured it's callable on both native and web

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.Mar 11 2024, 7:27 AM

Looks good but when landing you could comment in ENG-7198 to use olmAPI here - or if the olmAPI is ready at the time of landing, use it here.

native/identity-service/identity-service-context-provider.react.js
483

could you at least add a comment explaining why username is an empty string here?

web/grpc/identity-service-client-wrapper.js
433
This revision is now accepted and ready to land.Mar 12 2024, 9:16 AM
native/identity-service/identity-service-context-provider.react.js
481

Nit: why assign to token instead of just letting it be accessToken?

483

Is there a task to address the username being an empty string?

web/grpc/identity-service-client-wrapper.js
422

Not sure why this newline was removed

native/identity-service/identity-service-context-provider.react.js
481

eslint complains about name shadowing. It's also done for other methods in this file

483
lib/types/identity-service-types.js
155 ↗(On Diff #38062)

unintended, will fix before landing