[lib] Check for previous auth message and websocket connection state in identity search context provider
Summary:
This closes the identity search websocket connection if there is a null or changed auth message and the socket is still active.
Depends on D10938
Test Plan: flow and ran on web
Reviewers: varun, bartek, kamil, ashoat
Reviewed By: bartek, ashoat
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10973