Browse Source

fix /connect/token to push identity

pull/3752/head
toto-xoxo 2 years ago
committed by Mathijs van Veluw
parent
commit
71478da60b
  1. 7
      src/api/push.rs

7
src/api/push.rs

@ -50,7 +50,12 @@ async fn get_auth_push_token() -> ApiResult<String> {
("client_secret", &client_secret),
];
let res = match get_reqwest_client().post(&format!("{}/connect/token", CONFIG.push_identity_uri())).form(&params).send().await {
let res = match get_reqwest_client()
.post(&format!("{}/connect/token", CONFIG.push_identity_uri()))
.form(&params)
.send()
.await
{
Ok(r) => r,
Err(e) => err!(format!("Error getting push token from bitwarden server: {e}")),
};

Loading…
Cancel
Save