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
On this page
Latest version 4.0.1, released December 24, 2022.
Packages on npm run on Node.js. Node.js end of life dates.
passport-jwt 4.0.0 breaking changes
- Removed
ExtractJwt.fromAuthHeader
ExtractJwt.fromAuthHeader was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.algorithms
StrategyOptions.algorithms was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.audience
StrategyOptions.audience was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.ignoreExpiration
StrategyOptions.ignoreExpiration was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.issuer
StrategyOptions.issuer was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.jsonWebTokenOptions
StrategyOptions.jsonWebTokenOptions was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.jwtFromRequest
StrategyOptions.jwtFromRequest was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.passReqToCallback
StrategyOptions.passReqToCallback was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.secretOrKey
StrategyOptions.secretOrKey was removed in passport-jwt 4.0.0 npmjs.com - Removed
StrategyOptions.secretOrKeyProvider
StrategyOptions.secretOrKeyProvider was removed in passport-jwt 4.0.0 npmjs.com - Removed
VerifyCallback.__call
VerifyCallback.__call was removed in passport-jwt 4.0.0 npmjs.com - Removed
VerifyCallbackWithRequest.__call
VerifyCallbackWithRequest.__call was removed in passport-jwt 4.0.0 npmjs.com - Signature changed
ExtractJwt.fromExtractors
Was function fromExtractors(extractors: JwtFromRequestFunction[]): JwtFromRequestFunction; now function fromExtractors<T = any>(extractors: Array<JwtFromRequestFunction<T>>): JwtFromRequestFunction<T>. npmjs.com - Signature changed
JwtFromRequestFunction
Was interface JwtFromRequestFunction; now interface JwtFromRequestFunction<T = any>. npmjs.com - Signature changed
JwtFromRequestFunction.__call
Was (req: express.Request): string | null; now (req: T): string | null. npmjs.com - Signature changed
SecretOrKeyProvider
Was interface SecretOrKeyProvider; now interface SecretOrKeyProvider<T = any>. npmjs.com - 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 - 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 - Signature changed
StrategyOptions
Was interface StrategyOptions; now type StrategyOptions = StrategyOptionsWithRequest | StrategyOptionsWithoutRequest. npmjs.com - 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 - Signature changed
VerifyCallback
Was interface VerifyCallback; now type VerifyCallback = (payload: any, done: VerifiedCallback) => void. npmjs.com - Signature changed
VerifyCallbackWithRequest
Was interface VerifyCallbackWithRequest; now type VerifyCallbackWithRequest<T = any> = (req: T, payload: any, done: VerifiedCallback) => void. npmjs.com
passport-jwt 3.0.0 breaking changes
- Signature changed
JwtFromRequestFunction.__call
Was (req: Request): string; now (req: express.Request): string | null. npmjs.com - Signature changed
StrategyOptions.algorithms
Was algorithms?: string[]; now algorithms?: string[] | undefined. npmjs.com - Signature changed
StrategyOptions.audience
Was audience?: string; now audience?: string | string[] | undefined. npmjs.com - Signature changed
StrategyOptions.ignoreExpiration
Was ignoreExpiration?: boolean; now ignoreExpiration?: boolean | undefined. npmjs.com - Signature changed
StrategyOptions.issuer
Was issuer?: string; now issuer?: string | string[] | undefined. npmjs.com - Signature changed
StrategyOptions.passReqToCallback
Was passReqToCallback?: boolean; now passReqToCallback?: boolean | undefined. npmjs.com - Signature changed
StrategyOptions.secretOrKey
Was secretOrKey: string | Buffer; now secretOrKey?: string | Buffer | undefined. npmjs.com - Signature changed
VerifiedCallback.__call
Was (error: any, user?: any, info?: any): void; now (error: any, user?: Express.User | false, info?: any): void. npmjs.com - Signature changed
VerifyCallbackWithRequest.__call
Was (req: Request, payload: any, done: VerifiedCallback): void; now (req: express.Request, payload: any, done: VerifiedCallback): void. npmjs.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.