HomePhabricator
Diffusion Comm 82ac1b808854

[lib] Add hook for secondary device logout

Description

[lib] Add hook for secondary device logout

Summary:

  • Modified useLogOut() hook to be able to choose which identityClient method we want to call. Defaults to previous behavior
  • Added useSecondaryDeviceLogOut() hook which calls the previous one with the proper method. In future diffs, it will be updated to notify primary device

Depends on D12122

Test Plan:

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

Reviewers: kamil, varun, ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D12221

Details

Provenance
bartekAuthored on May 28 2024, 2:53 AM
Reviewer
ashoat
Differential Revision
D12221: [lib] Add hook for secondary device logout
Parents
rCOMM46e8f44193d8: [identity] Reword warns about device list out of sync
Branches
Unknown
Tags
Unknown