Skip to content
Permalink
Browse files
Replace the invalid characters in signature
Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
  • Loading branch information
orhun committed Apr 21, 2022
1 parent a243372 commit 3a47cae2b5d2a12a46548c07646305f1df0e1253
Showing 1 changed file with 2 additions and 2 deletions.
@@ -35,8 +35,8 @@ impl<'a, H: JoseHeader, C> VerifyWithKey<Token<H, C, Verified>> for Token<H, C,
claims_str,
signature_str,
} = self.signature;

if key.verify(header_str, claims_str, signature_str)? {
let signature_str = signature_str.replace('+', "-").replace('/', "_");
if key.verify(header_str, claims_str, &signature_str)? {
Ok(Token {
header: self.header,
claims: self.claims,

0 comments on commit 3a47cae

Please sign in to comment.