Closed heinhoang closed 7 years ago
if I place jwtAuthenticate()
in ctr function, it works fine. But why use jwtAuthenticate()
as middleware, it's not working???
I don't know why but it's working now. I will reopen if meet the same problem.
Odd. There hasn't been a new release in this time period and I wasn't able to reproduce the behavior.
Passport jwt config
Using
Problem Testing using Postman: I register a user, get token from that user and fill in
Authorization
in Headers (using postman). It's loading too long and then inform 'can't get any response'. Note: If I remove jwtAuthenticate middleware, it works fine..