iya-sts
    Preparing search index...

    Variable verifyHotpAsync

    verifyHotpAsync: (username: any, code: any, opts?: any) => Promise<any> = ...

    Type Declaration

      • (username: any, code: any, opts?: any): Promise<any>
      • Verifies an HOTP code by look-ahead and spends its counter across the cluster (X5): one of two concurrent verifications of a code wins.

        Parameters

        • username: any

          the person

        • code: any

          the code

        • Optionalopts: any

          window, overriding hotp.window

        Returns Promise<any>

        a promise of { ok: true, kind: 'hotp', counter, drift, hardware }, or a refusal (none, shape, mismatch, replay, store, unusable)