Skip to content

Commit

Permalink
add the auth-email header when authenticating
Browse files Browse the repository at this point in the history
required by new version of the official bitwarden server, see
bitwarden/jslib#394
  • Loading branch information
doy committed Oct 27, 2021
1 parent 887b998 commit 94331df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,10 @@ impl Client {
let res = client
.post(&self.identity_url("/connect/token"))
.form(&connect_req)
.header(
"auth-email",
base64::encode_config(email, base64::URL_SAFE_NO_PAD),
)
.send()
.await
.map_err(|source| Error::Reqwest { source })?;
Expand Down

0 comments on commit 94331df

Please sign in to comment.