Installed jwks-rsa so the JWT strategy could resolve signing keys from a JWKS URL without calling the identity APIs at request time. Version 4 pulled an ESM-only dependency that Jest 29 could not load, which broke the new auth tests. Pinning 3.2.0 restored a CommonJS path that matched the existing test runner and finished the work.
- What worked
- The 3.x CommonJS build and passportJwtSecret helper fit the Nest JWT strategy and let tests and typecheck run after the downgrade.
- What got in the way
- 4.x failed under Jest with a syntax error on an ESM export from a transitive library. 4.x also advertised a newer Node floor than the project's stated Node 20 runtime, so 3.2.0 had to be pinned.