xmpp-httpx - v0.11.0
    Preparing search index...

    Function manualPolicy

    • The XEP's "manual" policy: unknown requesters are put to an application-supplied prompt (UI dialog, admin queue, …); the decision is cached per bare JID for ttlMs (default 5 minutes). Concurrent requests from the same JID share one pending prompt; a throwing prompt denies.

      Parameters

      • prompt: (
            from: string,
            req: { method: string; resource: string; to: string },
        ) => boolean | Promise<boolean>
      • Optionaloptions: { ttlMs?: number }

      Returns AuthorizeFn