diff --git a/src/ear.rs b/src/ear.rs index 7ec0fca..8c2b9a5 100644 --- a/src/ear.rs +++ b/src/ear.rs @@ -87,7 +87,11 @@ impl Ear { Self::from_jwt(token, jwt_alg, &dk) } - fn from_jwt(token: &str, alg: jwt::Algorithm, key: &jwt::DecodingKey) -> Result { + pub fn from_jwt( + token: &str, + alg: jwt::Algorithm, + key: &jwt::DecodingKey, + ) -> Result { let mut validation = jwt::Validation::new(alg); // the default validation sets "exp" as a mandatory claim, which an E is not required to // have.