otplib breaking changes
otplib 13.6.0 (October 31, 2026) is its newest release with breaking changes, 15 of them. The first: Adapters now honour base64, latin1 and ascii key encodings in otplib 13.6.0. Every breaking API change we have recorded in otplib on npm: 16 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 13.6.0, released October 31, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
otplib 13.6.0 breaking changes
- Behavior changed
Key encodings passed to adapters are now applied instead of being ignored, so existing code that passes these encodings may get different keys and codes. Check any code that passes a non-default key encoding. github.com - Behavior changed
Generate parameters are now validated, so calls that previously passed invalid values may now throw. Check that your generate inputs are valid. github.com - Behavior changed
The CLI now requires vault and key files to have 0600 permissions. Existing files with looser permissions may need to be fixed by the user. github.com - Signature changed
Base32Plugin
Was export {Base32Plugin} from "@otplib/core"; now export {type Base32Plugin} from "@otplib/core". npmjs.com - Signature changed
class:VerifyResult
Was type VerifyResult = VerifyResult$1 | VerifyResult$2; now type VerifyResult = VerifyResult$2 | VerifyResult$1. npmjs.com - Signature changed
CryptoPlugin
Was export {CryptoPlugin} from "@otplib/core"; now export {type CryptoPlugin} from "@otplib/core". npmjs.com - Signature changed
functional:VerifyResult
Was type VerifyResult = VerifyResult$1 | VerifyResult$2; now type VerifyResult$2 = VerifyResult$1 | VerifyResult. npmjs.com - Signature changed
HashAlgorithm
Was export {HashAlgorithm} from "@otplib/core"; now export {type HashAlgorithm} from "@otplib/core". npmjs.com - Signature changed
OTPGuardrails
Was export {OTPGuardrails} from "@otplib/core"; now export {type OTPGuardrails} from "@otplib/core". npmjs.com - Signature changed
OTPGuardrailsConfig
Was export {OTPGuardrailsConfig} from "@otplib/core"; now export {type OTPGuardrailsConfig} from "@otplib/core". npmjs.com - Signature changed
OTPResult
Was export {OTPResult} from "@otplib/core"; now export {type OTPResult} from "@otplib/core". npmjs.com - Signature changed
TOTPOptions
Was export {TOTPOptions} from "@otplib/totp"; now export {type TOTPOptions} from "./functional-BFEWCHfj.js". npmjs.com - Signature changed
verify
Was function verify(options: OTPVerifyOptions): Promise<VerifyResult>; now function verify(options: OTPVerifyOptions): Promise<VerifyResult$2>. npmjs.com - Signature changed
VerifyResult
Was export {VerifyResult} from "@otplib/totp"; now export {type VerifyResult} from "@otplib/totp". npmjs.com - Signature changed
verifySync
Was function verifySync(options: OTPVerifyOptions): VerifyResult; now function verifySync(options: OTPVerifyOptions): VerifyResult$2. npmjs.com
otplib 13.5.0 breaking changes
- Behavior changed
Algorithm names outside sha1, sha256 and sha512 now throw AlgorithmUnsupportedError in all crypto plugins instead of silently substituting a digest. Stored secrets enrolled through the old fallback may stop verifying and need a sha512... github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.