iya-sts
    Preparing search index...

    Variable attemptShared

    attemptShared: (
        what: string,
        req: any,
        identity?: unknown,
        limit?: NamedLimit,
    ) => Promise<LimitAnswer> = ...

    Type Declaration

      • (
            what: string,
            req: any,
            identity?: unknown,
            limit?: NamedLimit,
        ): Promise<LimitAnswer>
      • Counts one attempt in the window every node shares, as attempt() does in one process.

        With no shared store it is attempt(), resolved. A store that cannot be asked falls back to this process's buckets, logged STS-CLUSTER-0023.

        Parameters

        • what: string

          the door being limited

        • req: any

          the express request, for the address

        • Optionalidentity: unknown

          optional; the identity attempted

        • Optionallimit: NamedLimit

          optional; the ceiling, as for attempt()

        Returns Promise<LimitAnswer>

        a promise of the answer, as attempt() gives it