Skip to content

types!: port passport to registration-scoped typing model#1383

Open
mcollina wants to merge 10 commits intomainfrom
feat/typed-passport
Open

types!: port passport to registration-scoped typing model#1383
mcollina wants to merge 10 commits intomainfrom
feat/typed-passport

Conversation

@mcollina
Copy link
Copy Markdown
Member

@mcollina mcollina commented Mar 15, 2026

Summary

Port @fastify/passport to the registration-scoped typing model and complete a
strict test/type cleanup.

Highlights:

  • registration-scoped typing across authenticator/route/strategy surfaces;
  • request/reply/session handling tightened with explicit helper types;
  • removal of unsafe double-casts (as unknown as) and broad any usage in TS
    source/tests;
  • secure-session manager fix for session regeneration path (avoid stale session
    reference after regenerate);
  • final validation state without test compat bridge and without skipLibCheck.

Dependencies

This PR is part of the migration stack and depends on:

Validation

  • npm run lint
  • npm run build
  • npm run build:test
  • npm test

Context

Refs fastify/fastify#5061.

@mcollina mcollina added the semver-major Issue or PR that should land as semver major label Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-major Issue or PR that should land as semver major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant