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)
Thu, Apr 25, 7:23 AM
Unknown Object (File)
Apr 3 2024, 12:44 PM
Unknown Object (File)
Mar 31 2024, 8:37 PM
Unknown Object (File)
Mar 30 2024, 1:31 AM
Unknown Object (File)
Mar 23 2024, 9:33 PM
Unknown Object (File)
Mar 23 2024, 1:37 AM
Unknown Object (File)
Mar 22 2024, 6:13 PM
Unknown Object (File)
Mar 21 2024, 10:54 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #37982)

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

web/grpc/identity-service-client-wrapper.js
433 ↗(On Diff #37982)
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 ↗(On Diff #37982)

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

483 ↗(On Diff #37982)

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

web/grpc/identity-service-client-wrapper.js
422 ↗(On Diff #37982)

Not sure why this newline was removed

native/identity-service/identity-service-context-provider.react.js
481 ↗(On Diff #37982)

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

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

unintended, will fix before landing