Simplify code
This commit is contained in:
parent
45f125a331
commit
27cee8d3a0
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user