@nowarajs/totp
    Preparing search index...

    Function totp

    • Time-based One-Time Password (TOTP) implementation

      Parameters

      • secret: Uint8Array

        Secret key as bytes

      • opts: TotpOptions & { now?: number } = {}

        TOTP options including current time

      Returns Promise<string>

      Promise resolving to the TOTP code