I am using nodejs and express, got the jsonwebtoken package and when I run jwt.verify(token, secret)
I get an error saying “invalid signature”, even though I checked the token and the secret I’m using at https://token.dev/ and it says they are valid. What could be the problem?
I tried sending a request from postman with a valid token and it threw the exception.