mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix(router): ApiKeyAuth or PublishableKeyAuth (#354)
This commit is contained in:
@ -168,7 +168,7 @@ pub fn get_auth_type_and_flow(
|
|||||||
if api_key.starts_with("pk_") {
|
if api_key.starts_with("pk_") {
|
||||||
return Ok((Box::new(PublishableKeyAuth), api::AuthFlow::Client));
|
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(
|
pub fn check_client_secret_and_get_auth(
|
||||||
|
|||||||
Reference in New Issue
Block a user