AustP / jwt-express

Climb aboard the JWT Express and use JWTs in your Express app with ease!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

res.sign() does not request for a new secret.

Celleb opened this issue · comments

When a request is made and the token is validated with a certain secret, this secret is reused when signing with res.sign(), I would prefer that it request a new secret i.e. call the secret function again.

commented

Do you mean jwt.resign()?

sign(payload), in this case I have a new payload