videosphere
    Preparing search index...

    Function verifyTotpToken

    • Verifies a 6-digit TOTP code against a plaintext Base32 secret.

      Parameters

      • secret: string

        Plaintext TOTP secret.

      • token: string

        User-entered authenticator code.

      Returns Promise<boolean>

      True when the code is valid within the default time window.