Documentation
    Preparing search index...

    Interface NapEnforceConfig

    Enforcement gate configuration for NIP-5D NAP handlers. Uses windowId for identity resolution instead of pubkey (which is '' in NIP-5D sessions).

    The ACL check function

    Maps windowId to identity (dTag, aggregateHash).

    Optional audit callback, called on every enforceNap() check

    interface NapEnforceConfig {
        checkAcl: AclChecker;
        onAclCheck?: (event: AclCheckEvent) => void;
        resolveIdentityByWindowId: (
            windowId: string,
        ) => { aggregateHash: string; dTag: string } | undefined;
    }
    Index

    Properties

    checkAcl: AclChecker
    onAclCheck?: (event: AclCheckEvent) => void
    resolveIdentityByWindowId: (
        windowId: string,
    ) => { aggregateHash: string; dTag: string } | undefined