Internal helper utilities exposed on the default export.
Input validation helpers exposed on the default export.
Generates a token for a specific counter value.
Decoded secret bytes.
Time-step counter.
Number of digits to return.
HMAC algorithm.
A zero-padded TOTP token.
Generates an otpauth URI and associated secret.
TOTP configuration values.
The generated otpauth URI and secret.
Checks a token against a shared secret without replay protection.
User-provided token.
Canonical unpadded Base32 secret.
Optionaloptions: Partial<VerifyTokenOptions>Verification overrides.
true when the token is valid for the given window.
Verifies a token and atomically claims its matched counter. The claim callback must persist the greatest accepted counter per account and return true only when it advances that counter.
Optionaloptions: Partial<VerifyTokenOptions>
RFC 4648 Base32 helpers.