Function generateTotp

  • Generate a Time based One Time Password

    This pages out to the inner method, which is counter-based and shared with HMAC.

    Returns

    a six-character numerical string

    Parameters

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

        The current time, in millseconds. Most likely sourced from Date.now()

    Returns string

Generated using TypeDoc