v3.0
This commit is contained in:
parent
df9449caae
commit
b30a2cc5e5
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue