parent
88187e0365
commit
6e2f461a1b
|
@ -72,7 +72,7 @@ let header = decode_header(&token)?;
|
||||||
This does not perform any validation on the token.
|
This does not perform any validation on the token.
|
||||||
|
|
||||||
#### Validation
|
#### Validation
|
||||||
This library validates automatically the `exp` and `nbf` claims if present. You can also validate the `sub`, `iss` and `aud` but
|
This library validates automatically the `exp` claim. `nbf` is also validated if present. You can also validate the `sub`, `iss` and `aud` but
|
||||||
those require setting the expected value in the `Validation` struct.
|
those require setting the expected value in the `Validation` struct.
|
||||||
|
|
||||||
Since validating time fields is always a bit tricky due to clock skew,
|
Since validating time fields is always a bit tricky due to clock skew,
|
||||||
|
|
Loading…
Reference in New Issue