diff --git a/jwt.js b/jwt.js index 429ee26..cfd7b2b 100644 --- a/jwt.js +++ b/jwt.js @@ -93,6 +93,7 @@ function fastifyJwt (fastify, options, next) { sign: sign, verify: verify }) + fastify.decorateRequest('user', null) fastify.decorateRequest('jwtVerify', requestVerify) fastify.decorateReply('jwtSign', replySign)