@nowarajs/totp
    Preparing search index...

    Function verifyTotp

    • Verify a TOTP code against a secret

      Parameters

      • secret: Uint8Array

        Secret key as bytes

      • code: string

        Code to verify

      • opts: VerifyOptions = {}

        Verification options

      Returns Promise<boolean>

      Promise resolving to true if code is valid