diff --git a/src/cwt/mod.rs b/src/cwt/mod.rs index 5b62f8e..d97398d 100644 --- a/src/cwt/mod.rs +++ b/src/cwt/mod.rs @@ -122,6 +122,12 @@ impl TryFrom> for ClaimsSet { } } +impl AsRef> for ClaimsSet { + fn as_ref(&self) -> &BTreeMap { + &self.0 + } +} + #[cfg(test)] mod test { use super::*;