Change default leeway
This commit is contained in:
parent
bebeb5f222
commit
c9c94c2b02
|
@ -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)
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue