Skip to content

Commit d00e05b

Browse files
committed
Fix incorrect async usage on client_credentials_for_provider
1 parent 43273d2 commit d00e05b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/handlers/src/upstream_oauth2/callback.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ pub(crate) async fn handler(
294294
lazy_metadata.token_endpoint().await?,
295295
&keystore,
296296
&encrypter,
297-
)
298-
.await?;
297+
)?;
299298

300299
let redirect_uri = url_builder.upstream_oauth_callback(provider.id);
301300

crates/handlers/src/upstream_oauth2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ fn client_credentials_for_provider(
139139
};
140140

141141
Ok(client_credentials)
142-
}
142+
}

0 commit comments

Comments
 (0)