mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
fix: use encrypt api for all encryption and decryption (#5379)
This commit is contained in:
@ -283,7 +283,7 @@ pub async fn decrypt_oidc_private_config(
|
||||
.change_context(UserErrors::InternalServerError)
|
||||
.attach_printable("Failed to decode DEK")?;
|
||||
|
||||
let private_config = domain::types::decrypt::<serde_json::Value, masking::WithType>(
|
||||
let private_config = domain::types::decrypt_optional::<serde_json::Value, masking::WithType>(
|
||||
&state.into(),
|
||||
encrypted_config,
|
||||
Identifier::UserAuth(id),
|
||||
|
||||
Reference in New Issue
Block a user