[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