Skip to content

Commit

Permalink
fix: DecodingKey building for RSA keys
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseZeroTwo committed Apr 24, 2022
1 parent afc8004 commit 7c64f95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,8 @@ const _IMPL_JWT_CONVERSIONS: () = {
.unwrap()
}
Self::RSA { .. } => {
jwt::DecodingKey::from_rsa_pem(self.to_pem().as_bytes()).unwrap()
jwt::DecodingKey::from_rsa_pem(self.to_public().unwrap().to_pem().as_bytes())
.unwrap()
}
}
}
Expand Down

0 comments on commit 7c64f95

Please sign in to comment.