Identity mock with sign-in controls.
Switch the shell user and push identity.changed.
identity.changed
Clear the shell user and push identity.changed { pubkey: '' }.
identity.changed { pubkey: '' }
const identity = createMockIdentityService();identity.signOut(); // pushes identity.changed { pubkey: '' }identity.signIn('bob'); // pushes identity.changed { pubkey: <bob> } Copy
const identity = createMockIdentityService();identity.signOut(); // pushes identity.changed { pubkey: '' }identity.signIn('bob'); // pushes identity.changed { pubkey: <bob> }
Identity mock with sign-in controls.