Page MenuHomePhabricator

[native/web] make `findUserIdentities` RPC available to native and web
ClosedPublic

Authored by will on May 10 2024, 9:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 15, 6:21 AM
Unknown Object (File)
Tue, Jun 11, 3:52 PM
Unknown Object (File)
Tue, Jun 11, 7:40 AM
Unknown Object (File)
Mon, Jun 10, 10:36 AM
Unknown Object (File)
Mon, Jun 10, 10:36 AM
Unknown Object (File)
Mon, Jun 10, 10:36 AM
Unknown Object (File)
Mon, Jun 10, 10:36 AM
Unknown Object (File)
Sun, Jun 9, 11:33 PM
Subscribers

Details

Summary

Implements FindUserIdentities RPC for web and native

Depends on D11999

Test Plan

On both web/native successfully called the FindUserIdentities rpc on

  1. ethereum user
  2. username user
  3. user with farcaster id
  4. non-existent user (resulting in no entry in the identities result)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

remove Object from ethereum identity validator

will requested review of this revision.May 10 2024, 10:15 PM
lib/types/identity-service-types.js
244 ↗(On Diff #40093)

We generally type farcasterID instead of farcasterId. Is there a way to do that here?

lib/types/identity-service-types.js
244 ↗(On Diff #40093)

On native there is, added a comment: https://phab.comm.dev/D11998#inline-71174

But for web, we need to do a manual rename in the forEach() call in L633

will planned changes to this revision.May 13 2024, 3:44 PM

Planning changes to address Ashoat's comment on changing farcasterId to farcasterID

use farcasterID instead of farcasterID on native/web

Looks good but I wasn't reviewing previous diffs in the stack so letting @bartek do the final approval on whether type definitions and API usage are correct

This revision is now accepted and ready to land.May 15 2024, 12:24 AM