# What changed in @fastify/passport

> 3 changes in @fastify/passport 4 from its official release notes, upgrade guides and advisories. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/@fastify/passport/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @fastify/passport 4

### Fixes and other changes

- Type definitions no longer require both @fastify/session and @fastify/secure-session types. (4.0.3) — [release notes](https://github.com/fastify/fastify-passport/releases/tag/v4.0.3)
- Accepts falsy serialized user IDs, allowing them to be handled correctly. (4.0.2) — [release notes](https://github.com/fastify/fastify-passport/releases/tag/v4.0.2)
- Supports TypeScript imports in both ESM and CommonJS. (4.0.2) — [release notes](https://github.com/fastify/fastify-passport/releases/tag/v4.0.2)
