[lib] Disconnect FID when another device disconnects it
Summary:
This addresses ENG-9684.
Depends on D13715
Test Plan:
- I started with a test account that has been connected to an FID on staging
- I opened up a mobile app and a web app logged in as this user
- I disconnected the FID on mobile
- I refreshed the web app. Prior to these changes, refreshing would not cause the FID to be disconnected on web. After these changes, it does. I was able to check if the FID was connected by seeing if the “Tag Farcaster channel” option appeared for a community that the user is an admin of
- On mobile, I then reconnected the FID on staging following these instructions
- After reconnecting on mobile, I refreshed the web app and confirmed that the FID was reconnected on web too
- Then I added an artificial delay to the findUserIdentities RPC to force a timeout. I refreshed the web app and confirmed that the FID was *not* disconnected
Reviewers: will, varun
Reviewed By: will
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D13716