Closed MonizDave closed 6 years ago
options.JwtFromRequest -> uppercase J....
What a rookie! Sorry for wasting your time.
MonizDave: you wasted your time anyway rudeness is not useful
@houssamboudiar: please read before commenting.
I was the original poster, I found my own mistake, and I called myself a rookie... - and I was apologizing for wasting other people's time because my bug was my own fault.
At no point was there any rudeness.... In fact the only rude thing here is that you gave me a thumbs down without paying proper attention.
Also, this was closed 4 months ago - why did you even come here?
xD I had the same error I came seeking a solution your thread was the first to check but your answer was ambiguous I wasted 1hour on it :( rookie me you could ve just say turn J to j and sorry for my rudeness
My friend, thank you very much. If I had looked at other forums, it would have taken me 1-2 hours and I would have tried different codes. You helped me with just a simple explanation. God bless you.
I can't see what I'm doing wrong
Error: /node_modules/passport-jwt/lib/strategy.js:55 throw new TypeError('JwtStrategy requires a function to retrieve jwt from requests (see option jwtFromRequest)');
Code: