Skip to content

Commit

Permalink
fix: missing request decorator user (#123) (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 authored Dec 18, 2020
1 parent e2ea8a6 commit c1575c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c1575c1

Please sign in to comment.