fix: use encrypt api for all encryption and decryption (#5379)

This commit is contained in:
Arjun Karthik
2024-07-19 21:03:17 +05:30
committed by GitHub
parent 5861c5a63b
commit 83849a5f3c
17 changed files with 117 additions and 96 deletions

View File

@ -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),