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

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

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

Its 12.0.0 release requires Node.js 20.19 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [11.0.5](#v-11-0-5) to [12.0.0](#v-12-0-0): 7 breaking changes in 1 version.
- From [10.0.0](#v-10-0-0) to [12.0.0](#v-12-0-0): 12 breaking changes in 5 versions.

## @nestjs/passport 12.0.0 breaking changes

@nestjs/passport 12.0.0, released August 27, 2026: 7 breaking changes.

- **Removed**  

Nest 10 is no longer a supported @nestjs/common peer dependency. Use Nest 11 or Nest 12. [github.com](https://github.com/nestjs/passport/releases/tag/12.0.0)
- **Removed**  

Imports like @nestjs/passport/dist/auth.guard no longer work. Import AuthGuard, PassportModule and PassportStrategy from the package root instead. [github.com](https://github.com/nestjs/passport/releases/tag/12.0.0)
- **Behavior changed** `AuthGuard`  

Module options defaultStrategy and property are stripped before passport.authenticate is called. Set defaultStrategy through PassportModule.register instead. [github.com](https://github.com/nestjs/passport/releases/tag/12.0.0)
- **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](https://github.com/nestjs/passport/releases/tag/12.0.0)
- **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](https://github.com/nestjs/passport/releases/tag/12.0.0)
- **Signature changed** `getAuthenticateOptions`  

Overrides now return AuthGuardAuthenticateOptions, which disallows defaultStrategy. Remove defaultStrategy from returned options and set it via PassportModule.register instead. [github.com](https://github.com/nestjs/passport/releases/tag/12.0.0)
- **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](https://www.npmjs.com/package/@nestjs/passport/v/12.0.0)

## @nestjs/passport 11.0.5 breaking changes

@nestjs/passport 11.0.5, released January 23, 2025: 1 breaking change.

- **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](https://www.npmjs.com/package/@nestjs/passport/v/11.0.5)

## @nestjs/passport 11.0.4 breaking changes

@nestjs/passport 11.0.4, released January 20, 2025: 1 breaking change.

- **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](https://www.npmjs.com/package/@nestjs/passport/v/11.0.4)

## @nestjs/passport 11.0.3 breaking changes

@nestjs/passport 11.0.3, released January 19, 2025: 1 breaking change.

- **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](https://www.npmjs.com/package/@nestjs/passport/v/11.0.3)

## @nestjs/passport 11.0.1 breaking changes

@nestjs/passport 11.0.1, released January 16, 2025: 2 breaking changes.

- **Signature changed** `IAuthModuleOptions`  

Was interface IAuthModuleOptions\<T = any>; now interface IAuthModuleOptions. [npmjs.com](https://www.npmjs.com/package/@nestjs/passport/v/11.0.1)
- **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](https://www.npmjs.com/package/@nestjs/passport/v/11.0.1)

## @nestjs/passport 10.0.0 breaking changes

@nestjs/passport 10.0.0, released June 15, 2023: 2 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](https://www.npmjs.com/package/@nestjs/passport/v/10.0.0)
- **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](https://www.npmjs.com/package/@nestjs/passport/v/10.0.0)

## 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/jwt](https://since.dev/packages/npm/@nestjs/jwt.md)
- [@nestjs/mapped-types](https://since.dev/packages/npm/@nestjs/mapped-types.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.
