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
Can we add an option that whenever jwt.verify is called, if the token is verified, reset the expiry timer,
example:
var token = jwt.sign(user, process.env.SECRET_KEY, {
expiresIn: 10
});
token expires in 10 seconds,
If after 5 seconds i call an api and it verifies the token, reset the expiration counter, so it count for 10 seconds after the verification process and not continue the remaining 5 seconds.
Thanks in advance,
Regards
The text was updated successfully, but these errors were encountered:
Can we add an option that whenever jwt.verify is called, if the token is verified, reset the expiry timer,
example:
var token = jwt.sign(user, process.env.SECRET_KEY, {
expiresIn: 10
});
token expires in 10 seconds,
If after 5 seconds i call an api and it verifies the token, reset the expiration counter, so it count for 10 seconds after the verification process and not continue the remaining 5 seconds.
Thanks in advance,
Regards
The text was updated successfully, but these errors were encountered: