Page MenuHomePhabricator

[lib] Add usePrimaryDeviceLogOut hook
ClosedPublic

Authored by bartek on Jun 28 2024, 2:09 AM.
Tags
None
Referenced Files
F3341744: D12603.diff
Thu, Nov 21, 11:36 PM
Unknown Object (File)
Mon, Nov 11, 11:54 PM
Unknown Object (File)
Mon, Nov 11, 11:15 PM
Unknown Object (File)
Mon, Nov 11, 2:36 PM
Unknown Object (File)
Mon, Nov 11, 10:50 AM
Unknown Object (File)
Mon, Oct 28, 10:38 PM
Unknown Object (File)
Thu, Oct 24, 12:52 PM
Unknown Object (File)
Oct 11 2024, 3:10 AM
Subscribers

Details

Summary
  • Added new primary_device variant to logOutType in useLogOut() hook. Modified the hook to call the correct Identity RPC. It is defined only on native so required a check.
  • Added usePrimaryDeviceLogOut() hook which calls the previous one with the proper method. In future diffs, it will be updated to send Tunnelbroker messages to peers.

For reference, the previous hook for secondary device was introduced in D12221

Depends on D12586

Test Plan
  • Made sure that identity logout still works as before and keyserver logout is triggered.
  • Made sure that setting logOutType: 'primary_device' actually calls the correct Identity RPC

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable