From cb9b565eb2033bad3e764fb860d08f6be86fc9e2 Mon Sep 17 00:00:00 2001 From: toto-xoxo <85445598+toto-xoxo@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:42:57 +0100 Subject: [PATCH] fix /connect/token to push identity --- src/api/push.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/push.rs b/src/api/push.rs index c39a17b4af4..7497b2490c1 100644 --- a/src/api/push.rs +++ b/src/api/push.rs @@ -50,7 +50,12 @@ async fn get_auth_push_token() -> ApiResult { ("client_secret", &client_secret), ]; - let res = match get_reqwest_client().post(&format!("{}/connect/token", CONFIG.push_identity_uri())).form(¶ms).send().await { + let res = match get_reqwest_client() + .post(&format!("{}/connect/token", CONFIG.push_identity_uri())) + .form(¶ms) + .send() + .await + { Ok(r) => r, Err(e) => err!(format!("Error getting push token from bitwarden server: {e}")), };