diff --git a/CHANGELOG.md b/CHANGELOG.md index 78eab70..024e40c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/validation.rs b/src/validation.rs index b189dc4..e9423e7 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -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,