Function jsonwebtoken::decode [] [src]

pub fn decode<T: Part>(token: &str, secret: &str, algorithm: Algorithm) -> Result<T, Error>

Decode a token into a Claims struct If the token or its signature is invalid, it will return an error