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

# passport-jwt breaking changes

passport-jwt 4.0.0 (March 13, 2018) is its newest release with breaking changes, 22 of them. The first: Removed ExtractJwt.fromAuthHeader. Every breaking API change we have recorded in passport-jwt on npm: 31 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 `4.0.1`, released December 24, 2022. 

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

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 22 breaking changes in 1 version.

## passport-jwt 4.0.0 breaking changes

passport-jwt 4.0.0, released March 13, 2018: 22 breaking changes.

- **Removed** `ExtractJwt.fromAuthHeader`  

ExtractJwt.fromAuthHeader was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.algorithms`  

StrategyOptions.algorithms was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.audience`  

StrategyOptions.audience was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.ignoreExpiration`  

StrategyOptions.ignoreExpiration was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.issuer`  

StrategyOptions.issuer was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.jsonWebTokenOptions`  

StrategyOptions.jsonWebTokenOptions was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.jwtFromRequest`  

StrategyOptions.jwtFromRequest was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.passReqToCallback`  

StrategyOptions.passReqToCallback was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.secretOrKey`  

StrategyOptions.secretOrKey was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `StrategyOptions.secretOrKeyProvider`  

StrategyOptions.secretOrKeyProvider was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `VerifyCallback.__call`  

VerifyCallback.\_\_call was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Removed** `VerifyCallbackWithRequest.__call`  

VerifyCallbackWithRequest.\_\_call was removed in passport-jwt 4.0.0 [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `ExtractJwt.fromExtractors`  

Was function fromExtractors(extractors: JwtFromRequestFunction\[\]): JwtFromRequestFunction; now function fromExtractors\<T = any>(extractors: Array\<JwtFromRequestFunction\<T>>): JwtFromRequestFunction\<T>. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `JwtFromRequestFunction`  

Was interface JwtFromRequestFunction; now interface JwtFromRequestFunction\<T = any>. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `JwtFromRequestFunction.__call`  

Was (req: express.Request): string | null; now (req: T): string | null. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `SecretOrKeyProvider`  

Was interface SecretOrKeyProvider; now interface SecretOrKeyProvider\<T = any>. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `SecretOrKeyProvider.__call`  

Was (request: express.Request, rawJwtToken: any, done: (err: any, secretOrKey?: string | Buffer) => void): void; now (request: T, rawJwtToken: any, done: (err: any, secretOrKey?: string | Buffer) => void): void. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `Strategy.constructor`  

Was constructor(opt: StrategyOptions, verify: VerifyCallback) constructor(opt: StrategyOptions, verify: VerifyCallbackWithRequest); now constructor(opt: StrategyOptionsWithRequest, verify: VerifyCallbackWithRequest) constructor(opt... [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `StrategyOptions`  

Was interface StrategyOptions; now type StrategyOptions = StrategyOptionsWithRequest | StrategyOptionsWithoutRequest. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `VerifiedCallback.__call`  

Was (error: any, user?: Express.User | false, info?: any): void; now (error: any, user?: unknown | false, info?: any): void. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `VerifyCallback`  

Was interface VerifyCallback; now type VerifyCallback = (payload: any, done: VerifiedCallback) => void. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)
- **Signature changed** `VerifyCallbackWithRequest`  

Was interface VerifyCallbackWithRequest; now type VerifyCallbackWithRequest\<T = any> = (req: T, payload: any, done: VerifiedCallback) => void. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/4.0.0)

## passport-jwt 3.0.0 breaking changes

passport-jwt 3.0.0, released August 16, 2017: 9 breaking changes.

- **Signature changed** `JwtFromRequestFunction.__call`  

Was (req: Request): string; now (req: express.Request): string | null. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `StrategyOptions.algorithms`  

Was algorithms?: string\[\]; now algorithms?: string\[\] | undefined. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `StrategyOptions.audience`  

Was audience?: string; now audience?: string | string\[\] | undefined. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `StrategyOptions.ignoreExpiration`  

Was ignoreExpiration?: boolean; now ignoreExpiration?: boolean | undefined. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `StrategyOptions.issuer`  

Was issuer?: string; now issuer?: string | string\[\] | undefined. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `StrategyOptions.passReqToCallback`  

Was passReqToCallback?: boolean; now passReqToCallback?: boolean | undefined. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `StrategyOptions.secretOrKey`  

Was secretOrKey: string | Buffer; now secretOrKey?: string | Buffer | undefined. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `VerifiedCallback.__call`  

Was (error: any, user?: any, info?: any): void; now (error: any, user?: Express.User | false, info?: any): void. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.0)
- **Signature changed** `VerifyCallbackWithRequest.__call`  

Was (req: Request, payload: any, done: VerifiedCallback): void; now (req: express.Request, payload: any, done: VerifiedCallback): void. [npmjs.com](https://www.npmjs.com/package/passport-jwt/v/3.0.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.
