This commit is contained in:
Vincent Prouillet 2017-09-08 16:23:15 +09:00
parent df9449caae
commit b30a2cc5e5
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# Changelog
## 3.0.0 (unreleased)
## 3.0.0 (2017-09-08)
### Breaking change
- Remove `validate_signature` from `Validation`, use `decode_header` instead if you don't know the alg used

View File

@ -125,9 +125,9 @@ pub fn decode<T: DeserializeOwned>(token: &str, key: &[u8], validation: &Validat
}
/// Decode a token and return the Header. This is not doing any kind of validation: it is meant to be
/// used when you don't know which `alg` the token is using and want to check
/// used when you don't know which `alg` the token is using and want to find out.
///
/// If the token is invalid, it will return an error.
/// If the token has an invalid format, it will return an error.
///
/// ```rust,ignore
/// use jsonwebtoken::decode_header;