-
-
Notifications
You must be signed in to change notification settings - Fork 138
chore: upgrade @fastify/jwt to 9.1.0 #615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Caution Review the following alerts detected in dependencies. According to your organization's Security Policy, you must resolve all "Block" alerts before proceeding. Learn more about Socket for GitHub.
|
In this PR
Issues reference
Checklist
pnpm lint
pnpm build
pnpm test
Summary
Adds comprehensive JWT compatibility tests to validate that upgrading
@fastify/jwt
from 9.0.1 to 9.1.0 is safe for this project. Tests exercise the plugin as used here (including JWKS-based verification, scope handling, and error behavior) without referencing package versions, ensuring forward compatibility for future upgrades. Also adds documentation describing how to run and interpret the new tests.What changed
test/jwt-compatibility.ts
:JWKS_URL
)formatUser
behavior (with and withoutscope
)docs/jwt-compatibility-testing.md
explaining:Why this is needed
@fastify/jwt
9.0.1 → 9.1.0 does not change behavior in this codebase@fastify/jwt
upgrades by testing usage patterns rather than versionsfastify-jwt-jwks
and scope-based access checksHow to verify locally
pnpm test jwt-compatibility.ts
pnpm test
Notes on compatibility
mock-jwks
)These assertions are stable and independent of specific
@fastify/jwt
versions, so they will continue to guard behavior as the dependency evolves.