mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-04 02:15:04 +01:00
fix(service_account): Use correct base64 encoding
This commit is contained in:
@@ -36,7 +36,7 @@ const GOOGLE_RS256_HEAD: &'static str = "{\"alg\":\"RS256\",\"typ\":\"JWT\"}";
|
||||
|
||||
// Encodes s as Base64
|
||||
fn encode_base64<T: AsRef<[u8]>>(s: T) -> String {
|
||||
base64::encode(s.as_ref())
|
||||
base64::encode_mode(s.as_ref(), base64::Base64Mode::UrlSafe)
|
||||
}
|
||||
|
||||
// Calculates the SHA256 hash.
|
||||
|
||||
Reference in New Issue
Block a user