Skip to content

Commit

Permalink
Use NO_PAD for base64url
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibsG authored and algesten committed Jan 15, 2024
1 parent f4a53c2 commit 0803f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::req::req_safe_read_body;
use crate::Result;

pub(crate) fn base64url<T: ?Sized + AsRef<[u8]>>(input: &T) -> String {
base64::prelude::BASE64_URL_SAFE.encode(input)
base64::prelude::BASE64_URL_SAFE_NO_PAD.encode(input)
}

pub(crate) fn read_json<T: DeserializeOwned>(res: ureq::Response) -> Result<T> {
Expand Down

0 comments on commit 0803f91

Please sign in to comment.