Keats / jsonwebtoken

JWT lib in rust
MIT License
1.62k stars 252 forks source link

fix(decoding): do not get_current_timestamp if user dont validate exp/nbf claims #302

Closed Oliboy50 closed 1 year ago

Oliboy50 commented 1 year ago

Why?

Because getting current timestamp has a (small) cost that we can avoid when user don't ask for validating "exp"/"nbf" claims.

Keats commented 1 year ago

Thanks!