Skip to content

Commit

Permalink
adds rsa decoding fix from EliseZeroTwo
Browse files Browse the repository at this point in the history
  • Loading branch information
06chaynes committed Oct 9, 2024
1 parent f7d1646 commit ff87a5f
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 @@ -637,7 +637,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 ff87a5f

Please sign in to comment.