Simplify code

This commit is contained in:
Pierre HUBERT 2022-04-14 18:07:30 +02:00
parent 45f125a331
commit 27cee8d3a0

View File

@ -38,7 +38,7 @@ impl JWTSigner {
key_type: "RSA".to_string(),
key_id: self.0.key_id().as_ref().unwrap().to_string(),
public_exponent: base64::encode_config(components.e, base64::URL_SAFE),
modulus: base64::encode_config(components.n, base64::URL_SAFE).replace('=', ""),
modulus: base64::encode_config(components.n, base64::URL_SAFE_NO_PAD),
}
}