diff --git a/crates/handlers/src/upstream_oauth2/authorize.rs b/crates/handlers/src/upstream_oauth2/authorize.rs index db4b886e2..e6dec7aef 100644 --- a/crates/handlers/src/upstream_oauth2/authorize.rs +++ b/crates/handlers/src/upstream_oauth2/authorize.rs @@ -94,11 +94,9 @@ pub(crate) async fn get( // Forward the raw login hint upstream for the provider to handle however it // sees fit - if let Some(post_auth_action) = &query.post_auth_action { - if let PostAuthAction::ContinueAuthorizationGrant { id } = post_auth_action { - if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? { - data.login_hint = grant.login_hint; - } + if let Some(PostAuthAction::ContinueAuthorizationGrant { id }) = &query.post_auth_action { + if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? { + data.login_hint = grant.login_hint; } }