mikenicholson / passport-jwt

Passport authentication using JSON Web Tokens
MIT License
1.96k stars 213 forks source link

TypeError: ExtractJwt.fromAuthHeaderAsBearerToken is not a function #142

Closed rvdabhi closed 5 years ago

rvdabhi commented 6 years ago

I am getting TypeError: ExtractJwt.fromAuthHeaderAsBearerToken is not a function error when I run server what should the cause?

Another thing is when I use fromAuthHeaderWithScheme() then error does not occur but when I try to login always getting Unauthorized same output with fromHeader("authorization")

Please help

hasanbadshah commented 6 years ago

Same error coming to me, can anyone help?

dannygee87 commented 6 years ago

Same error

ghost commented 6 years ago

Same error

mikenicholson commented 5 years ago

Can anyone provide some succinct sample code to reproduce this issue?

mikenicholson commented 5 years ago

Closing. Please re-open if you can provide code to reproduce the issue.