Skip to content

Commit

Permalink
refactor: enable error cache to prevent breaking changes (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 authored Nov 21, 2022
1 parent c399fbe commit 4c66076
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ function fastifyJwt (fastify, options, next) {
sign: initialSignOptions = {},
trusted,
decoratorName = 'user',
verify: initialVerifyOptions = {},
// TODO: disable on next major
// enable errorCacheTTL to prevent breaking change
verify: initialVerifyOptions = { errorCacheTTL: 600000 },
...pluginOptions
} = options

Expand Down

0 comments on commit 4c66076

Please sign in to comment.