diff --git a/crates/router/src/services/authentication.rs b/crates/router/src/services/authentication.rs index a821bf1dd2..d02dc4f5c6 100644 --- a/crates/router/src/services/authentication.rs +++ b/crates/router/src/services/authentication.rs @@ -168,7 +168,7 @@ pub fn get_auth_type_and_flow( if api_key.starts_with("pk_") { return Ok((Box::new(PublishableKeyAuth), api::AuthFlow::Client)); } - Ok((Box::new(PublishableKeyAuth), api::AuthFlow::Merchant)) + Ok((Box::new(ApiKeyAuth), api::AuthFlow::Merchant)) } pub fn check_client_secret_and_get_auth(