Skip to content

Commit

Permalink
fix /connect/token to push identity
Browse files Browse the repository at this point in the history
  • Loading branch information
toto-xoxo authored and BlackDex committed Dec 31, 2023
1 parent 826f866 commit 71478da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/api/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")),
};
Expand Down

0 comments on commit 71478da

Please sign in to comment.