You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running with Postman, I selected Authorization as "bearer token" and simply pasted the token in the box. I also tried sending it as a query parameter and in the request body.
Nothing works. There is no error, it just doesn't give any response.
The text was updated successfully, but these errors were encountered:
Yeah this one took me a while too... the callback (in OP defined as (jwt_payload, done) must not be asynchronous in any way.
Change that to (jwt_payload, done) => done(null, jwt_payload).
Then, the authenticate function needs to be wrapped:
Strategy:
JWT signing:
Authentication:
When running with Postman, I selected Authorization as "bearer token" and simply pasted the token in the box. I also tried sending it as a query parameter and in the request body.
Nothing works. There is no error, it just doesn't give any response.
The text was updated successfully, but these errors were encountered: