[lib] Send primary device logout message to secondary devices
Summary:
Primary device, before logging out itself, sends logout request to all secondary devices.
The logic is analogous to useSecondaryDeviceLogOut() hook, but this time recipients are secondary devices,
and sender is the primary device.
Depends on D12637
Test Plan:
Logged in on 3 devices:
- Physical iPhone as primary device
- Native Simulator as secondary device 1
- Web as secondary device 2
Pressed the "Primary device logout" dev button on the primary device.
Received console log on both Simulator and web about primary logout (introduced in D12636)
Reviewers: kamil
Reviewed By: kamil
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D12638