---
title: "otplib 13.6.0 Breaking Changes on npm | Since.dev"
description: "What each otplib release removed, renamed or changed: 16 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/otplib
last_updated: 2026-12-04
---

# 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

Latest version `13.6.0`, released October 31, 2026. [Source repository](https://github.com/yeojz/otplib)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [13.5.0](#v-13-5-0) to [13.6.0](#v-13-6-0): 15 breaking changes in 1 version.

## otplib 13.6.0 breaking changes

otplib 13.6.0, released October 31, 2026: 15 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](https://github.com/yeojz/otplib/releases/tag/v13.6.0)
- **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](https://github.com/yeojz/otplib/releases/tag/v13.6.0)
- **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](https://github.com/yeojz/otplib/releases/tag/v13.6.0)
- **Signature changed** `Base32Plugin`  

Was export {Base32Plugin} from "@otplib/core"; now export {type Base32Plugin} from "@otplib/core". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `class:VerifyResult`  

Was type VerifyResult = VerifyResult$1 | VerifyResult$2; now type VerifyResult = VerifyResult$2 | VerifyResult$1. [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `CryptoPlugin`  

Was export {CryptoPlugin} from "@otplib/core"; now export {type CryptoPlugin} from "@otplib/core". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `functional:VerifyResult`  

Was type VerifyResult = VerifyResult$1 | VerifyResult$2; now type VerifyResult$2 = VerifyResult$1 | VerifyResult. [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `HashAlgorithm`  

Was export {HashAlgorithm} from "@otplib/core"; now export {type HashAlgorithm} from "@otplib/core". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `OTPGuardrails`  

Was export {OTPGuardrails} from "@otplib/core"; now export {type OTPGuardrails} from "@otplib/core". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `OTPGuardrailsConfig`  

Was export {OTPGuardrailsConfig} from "@otplib/core"; now export {type OTPGuardrailsConfig} from "@otplib/core". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `OTPResult`  

Was export {OTPResult} from "@otplib/core"; now export {type OTPResult} from "@otplib/core". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `TOTPOptions`  

Was export {TOTPOptions} from "@otplib/totp"; now export {type TOTPOptions} from "./functional-BFEWCHfj.js". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `verify`  

Was function verify(options: OTPVerifyOptions): Promise\<VerifyResult>; now function verify(options: OTPVerifyOptions): Promise\<VerifyResult$2>. [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `VerifyResult`  

Was export {VerifyResult} from "@otplib/totp"; now export {type VerifyResult} from "@otplib/totp". [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)
- **Signature changed** `verifySync`  

Was function verifySync(options: OTPVerifyOptions): VerifyResult; now function verifySync(options: OTPVerifyOptions): VerifyResult$2. [npmjs.com](https://www.npmjs.com/package/otplib/v/13.6.0)

## otplib 13.5.0 breaking changes

otplib 13.5.0, released August 21, 2026: 1 breaking change.

- **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](https://github.com/yeojz/otplib/releases/tag/v13.5.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
