Skip to content

Commit

Permalink
feat: implement TryFrom for JwtCredential when validator feature is e…
Browse files Browse the repository at this point in the history
…nabled
  • Loading branch information
itsyaasir committed Nov 27, 2024
1 parent 31f73b0 commit ceafcfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions identity_credential/src/credential/jwt_serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use crate::Result;
#[serde(transparent)]
pub struct JwtCredential(CredentialJwtClaims<'static>);

#[cfg(feature = "validator")]
impl TryFrom<JwtCredential> for Credential {
type Error = Error;
fn try_from(value: JwtCredential) -> std::result::Result<Self, Self::Error> {
Expand Down

0 comments on commit ceafcfa

Please sign in to comment.