Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Apr 23, 2024
1 parent b422162 commit 023be00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/serv_account/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub enum ServiceAccountError {
HttpJson(reqwest::Error),

#[error("response returned non-Bearer auth access token: {0}")]
AccessTokenNotBeaarer(String),
AccessTokenNotBearer(String),
}

pub type Result<T> = StdResult<T, ServiceAccountError>;
2 changes: 1 addition & 1 deletion src/serv_account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl ServiceAccount {
.map_err(ServiceAccountError::HttpJson)?;

if json.token_type != "Bearer" {
return Err(ServiceAccountError::AccessTokenNotBeaarer(json.token_type));
return Err(ServiceAccountError::AccessTokenNotBearer(json.token_type));
}

// Account for clock skew or time to receive or process the response
Expand Down

0 comments on commit 023be00

Please sign in to comment.