Documentation
    Preparing search index...

    Interface MockIdentityState

    In-memory state of the identity mock.

    const state = createMockIdentityService().mock.state();
    state.user === MOCK_ACCOUNTS[0].pubkey;
    interface MockIdentityState {
        badges: Badge[];
        store: MockNostrStore;
        user: string;
        windows: Set<string>;
        zaps: ZapReceipt[];
    }
    Index

    Properties

    badges: Badge[]

    Badges reported by identity.getBadges.

    Shared event store.

    user: string

    Current shell-user pubkey, or '' when signed out.

    windows: Set<string>

    Windows that have sent an identity request (recipients of identity.changed).

    zaps: ZapReceipt[]

    Zap receipts reported by identity.getZaps.