#JWT Documentation: Missing line in code example?

4 messages · Page 1 of 1 (latest)

honest hound
#

I implemented a JWT strategy exactly as shown here: https://docs.nestjs.com/security/authentication#implementing-passport-jwt However, when I run the code the payload parameter of the validate function doesn't contain the decoded token, but the encoded one. Is the documentation wrong ?

torn zodiac
#

Interesting. Can you share a reproduction?

honest hound
#

Well, just use the example in the documentation. There's nothing different in the code I use.

torn zodiac
#

Okay, but I don't have the code in the documentation already set up, so I was wondering if you had something I could just clone and work with immediately