iya-sts
    Preparing search index...
    codeAct: (req: any, res: any, mfaId: string, code: string) => Promise<void> = ...

    Type Declaration

      • (req: any, res: any, mfaId: string, code: string): Promise<void>
      • Checks a typed code and, when it is right and unexpired, spends it and finishes the step. Wrong codes are counted and end the step at the policy's limit.

        Parameters

        • req: any

          the request

        • res: any

          the response

        • mfaId: string

          the step's id

        • code: string

          the code as typed

        Returns Promise<void>

        a promise settled when the answer is sent