aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-02-18 16:00:14 -0500
committerJesse Luehrs <doy@tozt.net>2023-02-18 17:42:27 -0500
commit070955637030076aca30a9afcba95603a4394abc (patch)
treea8f4952ac9f79c048c07bd438be5405ad2c41d63 /src/api.rs
parent1d68b717e8ae12dfdf8af9c451dbf0d6a8cc6d71 (diff)
downloadrbw-070955637030076aca30a9afcba95603a4394abc.tar.gz
rbw-070955637030076aca30a9afcba95603a4394abc.zip
bump deps
Diffstat (limited to 'src/api.rs')
-rw-r--r--src/api.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api.rs b/src/api.rs
index 5f517bb..44d0fe0 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -653,7 +653,7 @@ impl Client {
let connect_req = ConnectPasswordReq {
grant_type: "password".to_string(),
username: email.to_string(),
- password: Some(base64::encode(password_hash.hash())),
+ password: Some(crate::base64::encode(password_hash.hash())),
scope: "api offline_access".to_string(),
client_id: "desktop".to_string(),
client_secret: None,
@@ -674,7 +674,7 @@ impl Client {
.form(&connect_req)
.header(
"auth-email",
- base64::encode_config(email, base64::URL_SAFE_NO_PAD),
+ crate::base64::encode_url_safe_no_pad(email),
)
.send()
.await