mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
refactor(core): use secrets for connector AuthType in connector integration (#1441)
This commit is contained in:
@ -250,8 +250,8 @@ impl TryFrom<&types::ConnectorAuthType> for PaymeAuthType {
|
||||
fn try_from(auth_type: &types::ConnectorAuthType) -> Result<Self, Self::Error> {
|
||||
match auth_type {
|
||||
types::ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self {
|
||||
seller_payme_id: Secret::new(api_key.to_string()),
|
||||
payme_client_key: Secret::new(key1.to_string()),
|
||||
seller_payme_id: api_key.to_owned(),
|
||||
payme_client_key: key1.to_owned(),
|
||||
}),
|
||||
_ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user