Function jsonwebtoken::decode
[−]
[src]
pub fn decode<T: Part>(token: &str, secret: &[u8], algorithm: Algorithm) -> Result<TokenData<T>, Error>
Decode a token into a Claims struct If the token or its signature is invalid, it will return an error