Function verifyTotp

  • Check a One Time Password based on a timer.

    Parameters

    • __namedParameters: {
          keyBase32: string;
          timeMs: Milliseconds;
          token: string;
      }
      • keyBase32: string

        Key for the one time password. This should be unique and secret for every user as it is the seed used to calculate the HMAC

        Encoded as base32

      • timeMs: Milliseconds

        The current time, from Date.now();

      • token: string

        Passcode to validate

    Returns boolean

Generated using TypeDoc