I generate a token from the data retrieved form database and it does not have exp and iat fields, due to this it is not checking expiration time and always verify token. and also when i decoded the token on jwt.io it says invalid token.
can you tell me the way to solve this? Here's my code
var token=jwt.sign(members,app.get('superSecret'),{ expiresInMinutes:40 });
I am using express js