---
title: "@nestjs/jwt 12.0.5 Breaking Changes on npm | Since.dev"
description: "What each @nestjs/jwt release removed, renamed or changed: 11 breaking changes in 4 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@nestjs/jwt
last_updated: 2026-12-04
---

# @nestjs/jwt breaking changes

@nestjs/jwt 12.0.5 (November 13, 2026) is its newest release with breaking changes. The first: Call-level asymmetric keys now take priority over the module secret in @nestjs/jwt 12.0.5. Every breaking API change we have recorded in @nestjs/jwt on npm: 11 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `12.0.5`, released November 13, 2026. [Source repository](https://github.com/nestjs/jwt)

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

- From [11.0.1](#v-11-0-1) to [12.0.5](#v-12-0-5): 7 breaking changes in 3 versions.

## @nestjs/jwt 12.0.5 breaking changes

@nestjs/jwt 12.0.5, released November 13, 2026: 1 breaking change.

- **Behavior changed**  

When asymmetric keys are passed in a call, they are now used instead of the module-level secret. Code that relied on the module secret overriding call-level keys may now get different results and should be checked. [github.com](https://github.com/nestjs/jwt/releases/tag/12.0.5)

## @nestjs/jwt 12.0.4 breaking changes

@nestjs/jwt 12.0.4, released November 6, 2026: 3 breaking changes.

- **Signature changed** `JwtSignOptions.secret`  

Was secret?: string | Buffer; now secret?: jwt.Secret. [npmjs.com](https://www.npmjs.com/package/@nestjs/jwt/v/12.0.4)
- **Signature changed** `JwtVerifyOptions.publicKey`  

Was publicKey?: string | Buffer; now publicKey?: jwt.Secret. [npmjs.com](https://www.npmjs.com/package/@nestjs/jwt/v/12.0.4)
- **Signature changed** `JwtVerifyOptions.secret`  

Was secret?: string | Buffer; now secret?: jwt.Secret. [npmjs.com](https://www.npmjs.com/package/@nestjs/jwt/v/12.0.4)

## @nestjs/jwt 12.0.0 breaking changes

@nestjs/jwt 12.0.0, released August 27, 2026: 3 breaking changes.

- **Removed**  

The root index.js, index.d.ts and index.ts shims are gone, so code relying on them must import from the package's exports map. [github.com](https://github.com/nestjs/jwt/releases/tag/12.0.0)
- **Removed** `@nestjs.jwt.dist.jwt.service`  

Code that imports from dist/ paths of the package must import from the package root instead. [github.com](https://github.com/nestjs/jwt/releases/tag/12.0.0)
- **Behavior changed**  

The package is published as pure ES module; CommonJS apps keep working on supported Node versions, but on older Node require() throws ERR_REQUIRE_ESM. [github.com](https://github.com/nestjs/jwt/releases/tag/12.0.0)

## @nestjs/jwt 11.0.1 breaking changes

@nestjs/jwt 11.0.1, released October 10, 2025: 4 breaking changes.

- **Signature changed** `JwtModuleOptions.publicKey`  

Was publicKey?: string | Buffer; now publicKey?: jwt.Secret. [npmjs.com](https://www.npmjs.com/package/@nestjs/jwt/v/11.0.1)
- **Signature changed** `JwtModuleOptions.secret`  

Was secret?: string | Buffer; now secret?: jwt.Secret. [npmjs.com](https://www.npmjs.com/package/@nestjs/jwt/v/11.0.1)
- **Signature changed** `JwtService.sign`  

Was sign(payload: Buffer | object, options?: JwtSignOptions): string; now sign(payload: Buffer, options?: JwtSignOptions): string sign\<T extends object = any>(payload: T, options?: JwtSignOptions): string. [npmjs.com](https://www.npmjs.com/package/@nestjs/jwt/v/11.0.1)
- **Signature changed** `JwtService.signAsync`  

Was signAsync(payload: Buffer | object, options?: JwtSignOptions): Promise\<string>; now signAsync(payload: Buffer, options?: JwtSignOptions): Promise\<string> signAsync\<T extends object = any>(payload: T, options?: JwtSignOptions)... [npmjs.com](https://www.npmjs.com/package/@nestjs/jwt/v/11.0.1)

## Related packages

- [@nestjs/cli](https://since.dev/packages/npm/@nestjs/cli.md)
- [@nestjs/common](https://since.dev/packages/npm/@nestjs/common.md)
- [@nestjs/config](https://since.dev/packages/npm/@nestjs/config.md)
- [@nestjs/core](https://since.dev/packages/npm/@nestjs/core.md)
- [@nestjs/mapped-types](https://since.dev/packages/npm/@nestjs/mapped-types.md)
- [@nestjs/microservices](https://since.dev/packages/npm/@nestjs/microservices.md)

## 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.
