@nestjs/passport breaking changes
@nestjs/passport 12.0.0 (August 27, 2026) is its newest release with breaking changes, 7 of them. The first: Drops support for Nest 10 in @nestjs/passport 12.0.0. Every breaking API change we have recorded in @nestjs/passport on npm: 14 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 12.0.2, released November 13, 2026. Source repository
Its 12.0.0 release requires Node.js 20.19 or later. Node.js end of life dates.
- From 11.0.5 to 12.0.0: 7 breaking changes in 1 version.
- From 10.0.0 to 12.0.0: 12 breaking changes in 5 versions.
@nestjs/passport 12.0.0 breaking changes
- Removed
Nest 10 is no longer a supported @nestjs/common peer dependency. Use Nest 11 or Nest 12. github.com - Removed
Imports like @nestjs/passport/dist/auth.guard no longer work. Import AuthGuard, PassportModule and PassportStrategy from the package root instead. github.com - Behavior changed
AuthGuard
Module options defaultStrategy and property are stripped before passport.authenticate is called. Set defaultStrategy through PassportModule.register instead. github.com - Configuration changed
CommonJS apps using require on this package need Node.js 20.19 or later, or 22.12 or later. Older Node versions require upgrading Node or moving the app to ESM. github.com - Configuration changed
The package is published as native ES modules behind an exports map, and the legacy root index shims are gone. CommonJS apps can still use require on supported Node versions. github.com - Signature changed
getAuthenticateOptions
Overrides now return AuthGuardAuthenticateOptions, which disallows defaultStrategy. Remove defaultStrategy from returned options and set it via PassportModule.register instead. github.com - Signature changed
IAuthGuard
Was type IAuthGuard = CanActivate & {logIn<TRequest extends {logIn: Function;} = any>(request: TRequest): Promise<void>; handleRequest<TUser = any>(err: any, user: any, info: any, context: ExecutionContext, status?: any): TUser... npmjs.com
@nestjs/passport 11.0.5 breaking changes
- Signature changed
WithoutCallback
Was type WithoutCallback<T extends any[]> = T extends any ? (T extends [...infer U, any] ? U : T) : never; now type WithoutCallback<T extends any[]> = T extends any ? T extends [...infer U, infer C] ? C extends Function ? U : T : T : never. npmjs.com
@nestjs/passport 11.0.4 breaking changes
- Signature changed
AllConstructorParameters
Was type AllConstructorParameters<T> = ExcludeUnknown<T extends {new (...o: infer U): void; new (...o: infer U2): void; new (...o: infer U3): void; new (...o: infer U4): void; new (...o: infer U5): void; new (...o: infer U6): void; new... npmjs.com
@nestjs/passport 11.0.3 breaking changes
- Signature changed
PassportStrategy
Was function PassportStrategy<T extends Type<any> = any, TUser = unknown, TValidationResult = TUser | false | null>(Strategy: T, name?: string, callbackArity?: true | number): {new (...args: WithoutCallback<ConstructorParameters<T>>)... npmjs.com
@nestjs/passport 11.0.1 breaking changes
- Signature changed
IAuthModuleOptions
Was interface IAuthModuleOptions<T = any>; now interface IAuthModuleOptions. npmjs.com - Signature changed
PassportStrategy
Was function PassportStrategy<T extends Type<any> = any>(Strategy: T, name?: string | undefined, callbackArity?: true | number): {new (...args: any[]): InstanceType<T>;}; now function PassportStrategy<T extends Type<any> = any, TUser =... npmjs.com
@nestjs/passport 10.0.0 breaking changes
- Signature changed
IAuthGuard
Was type IAuthGuard = CanActivate & {logIn<TRequest extends {logIn: Function;} = any>(request: TRequest): Promise<void>; handleRequest<TUser = any>(err: any, user: any, info: any, context: ExecutionContext, status?: any): TUser... npmjs.com - Signature changed
PassportStrategy
Was function PassportStrategy<T extends Type<any> = any>(Strategy: T, name?: string | undefined): {new (...args: any[]): InstanceType<T>;}; now function PassportStrategy<T extends Type<any> = any>(Strategy: T, name?: string | undefined... npmjs.com
Related packages
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.