iya-sts
    Preparing search index...

    Variable subjectActShared

    subjectActShared: (
        what: string,
        req: any,
        subject: string,
        perWindow: number,
        windowS: number,
        code: string,
    ) => Promise<LimitAnswer> = ...

    Type Declaration

      • (
            what: string,
            req: any,
            subject: string,
            perWindow: number,
            windowS: number,
            code: string,
        ): Promise<LimitAnswer>
      • Counts one act of a signed-in subject in its own bucket.

        Parameters

        • what: string

          the bucket's name, part of its key

        • req: any

          the express request

        • subject: string

          who the token names (realm and sub), the key

        • perWindow: number

          the most acts per window; 0 or less counts nothing

        • windowS: number

          the window, in seconds

        • code: string

          the error code a refusal carries

        Returns Promise<LimitAnswer>

        a promise of { ok: true }, or of the refusal with retryAfterS, detail and said