Top "Express-jwt" questions

Connect/express middleware that validates a JsonWebToken (JWT) and set the req.

If you can decode JWT, how are they secure?

If I get a JWT and I can decode the payload, how is that secure? Couldn't I just grab the …

security jwt express-jwt
How to send a token with an AJAX request from jQuery

I use express-jwt and create my token via jQuery and save it in my localStorage with: $.ajax({ url: "http://localhost:8080/…

javascript jquery express jwt express-jwt
ERR_HTTP_HEADERS_SENT: Cannot set headers after they are sent to the client

I'm facing this weird issue in NodeJS when using with Passport.js, Express and Mongoose. Basically, I get an error …

node.js express mongoose passport.js express-jwt
Express JWT Error: Not enough or too many segments in socket.io initial auth

During the initial handshake where a token and username are passed, I am catching this strange error-- { handle: 10, type: 'error', …

javascript authentication socket.io jwt express-jwt
Json web token does not expire

I just implemented a json web token authentication, on my backend I send the token which is created by jsonwebtoken …

node.js jwt express-jwt
JSON Web Token (JWT) benefits over a database session token

With a database session token system I could have a user login with a username/password, the server could generate …

access-token jwt express-jwt json-web-token
if (!options.algorithms) throw new Error('algorithms should be set'); Error: algorithms should be set

I started learning Nodejs and i am stuck somewhere in the middle. I installed a new library from npm and …

javascript node.js npm express-jwt
Supertest, test secure REST API

I am writing an integration test for a REST API protected by a jwt. One API operation POST /user/token …

node.js jwt supertest express-jwt
JWT Returns Invalid Signature Error Even When I enter the token in Authorization

I already looked at this stack overflow entry Node.js - Express.js JWT always returns an invalid token error …

javascript node.js jwt json-web-token express-jwt
How to handle errors with Express-JWT

I am trying to incorporate the express-jwt library and I do not quite understand how it's error handling works. The …

node.js express jwt express-jwt