Page MenuHomePhabricator

[native] implement deleteUser native client method and expose it via CommRustModule
ClosedPublic

Authored by varun on Oct 20 2023, 9:00 AM.
Tags
None
Referenced Files
F3398438: D9555.id32268.diff
Sun, Dec 1, 11:01 PM
F3397841: D9555.diff
Sun, Dec 1, 7:41 PM
Unknown Object (File)
Sat, Nov 30, 1:07 AM
Unknown Object (File)
Wed, Nov 20, 4:38 PM
Unknown Object (File)
Wed, Nov 20, 4:38 PM
Unknown Object (File)
Wed, Nov 20, 4:37 PM
Unknown Object (File)
Wed, Nov 20, 4:18 PM
Unknown Object (File)
Tue, Nov 12, 3:08 PM
Subscribers

Details

Summary

this is pretty similar to the updatePassword method. we just send the standard auth info (access token, user ID, device ID). since it's available in the comm secure store now, so we can probably refactor the JSI function in the future to not take any params. for now, though, i'm just following the pattern in updatePassword.

Test Plan

registered a new user and then called deleteUser from js and verified that the user's data was removed from my local ddb tables

Diff Detail

Repository
rCOMM Comm
Branch
new-master (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Oct 20 2023, 9:18 AM
native/native_rust_library/src/lib.rs
593

Could you remind me - is this hardcoded address going to be replaced once we have the getCommConfig stuff implemented?

This revision is now accepted and ready to land.Oct 20 2023, 9:36 AM
native/native_rust_library/src/lib.rs
593

yeah that's correct. this is tracked in ENG-4885