Change default leeway

This commit is contained in:
Vincent Prouillet 2021-11-19 20:11:17 +01:00
parent bebeb5f222
commit c9c94c2b02
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@
- Add JWKs types for easy interop with various Oauth providers
- Removed `decode_*` functions in favour of using the `Validation` struct
- Allow float values for `exp` and `nbf`, yes it's in the spec... floats will be rounded to u64
- Error now implements Clone/Eq
- Change default leeway from 0s to 60s
## 7.2.0 (2020-06-30)

View File

@ -98,7 +98,7 @@ impl Default for Validation {
fn default() -> Self {
Validation {
algorithms: vec![Algorithm::HS256],
leeway: 0,
leeway: 60,
validate_exp: true,
validate_nbf: false,