iya-sts
    Preparing search index...

    Variable codeAt

    codeAt: (
        secret: unknown,
        at?: number,
        opts?: { period?: string | number } & HotpOptions,
    ) => string = ...

    Type Declaration

      • (
            secret: unknown,
            at?: number,
            opts?: { period?: string | number } & HotpOptions,
        ): string
      • Computes the code for a secret at a moment; never used to answer a request.

        Parameters

        • secret: unknown

          the base32 secret

        • Optionalat: number

          optional moment in milliseconds; now by default

        • Optionalopts: { period?: string | number } & HotpOptions

          optional { period, digits, algorithm }; the realm's period by default

        Returns string

        the code