Clears the identity cookie and resets the identity state to not-set.
Call this when the user logs out to ensure subsequent requests and WebSocket connections do not carry stale credentials. Typically followed by ArcConfiguration.reconnectQueries to re-establish query connections without the old credentials.
Extends IIdentity with actions available from the React identity context.