Page MenuHomePhabricator

[native] add reserved registration methods to IdentityServiceContextProvider
ClosedPublic

Authored by varun on May 6 2024, 7:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 4:01 PM
Unknown Object (File)
Mon, Dec 23, 4:01 PM
Unknown Object (File)
Mon, Dec 23, 4:00 PM
Unknown Object (File)
Mon, Dec 23, 4:00 PM
Unknown Object (File)
Nov 26 2024, 10:19 PM
Unknown Object (File)
Nov 23 2024, 6:36 AM
Unknown Object (File)
Nov 23 2024, 3:05 AM
Unknown Object (File)
Nov 12 2024, 7:07 AM
Subscribers

Details

Summary

we need this so we can call the methods from user-actions.js using the identity client

Depends on D11909

Test Plan

tested from js later in stack by calling the useLogIn hook with a reserved username and reserved wallet address and confirming that i was registered on identity

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.May 6 2024, 7:52 AM

This code is almost entirely a copy-paste from existing endpoints. Can we reduce the duplication?

lib/types/identity-service-types.js
131 ↗(On Diff #39856)

Why do we change this in an unrelated diff?

This revision is now accepted and ready to land.May 7 2024, 1:47 AM
lib/types/identity-service-types.js
131 ↗(On Diff #39856)

ah, sorry, forgot to annotate this change. noticed while working on this diff that the signatures of registerPasswordUser and registerWalletUser in native/identity-service/identity-service-context-provider.react.js didn't match what we had here. it seems that optional methods' signatures aren't enforced by flow

When rebasing, you'll have to add initialDeviceListparam - see D12017 and the following diffs in that stack (D12067 is relevant here)