iya-sts
    Preparing search index...

    Variable failedShared

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

    Type Declaration

      • (
            what: string,
            req: any,
            identity?: unknown,
            limit?: NamedLimit,
        ): Promise<LimitAnswer>
      • Counts a failure in the shared window and says whether it may still be answered as a failure.

        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 null within the limit, or of the lockout refusal once the count is past it