[identity] manage login state
Summary:
Updated the cache to handle both registration and login state
Depends on D7535
Test Plan: tested later with OPAQUE login workflow
Reviewers: jon, bartek
Reviewed By: jon, bartek
Subscribers: ashoat, tomek, atul
Differential Revision: https://phab.comm.dev/D7536