From 708742c013bc9e8cff9217e1eaff746ae0f8af00 Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Mon, 16 Sep 2024 14:42:07 +0200 Subject: [PATCH] Revert "chore: Allow default values for kms as kms is not optional in Veramo APIs" This reverts commit a6e506b4c8ea5800f7bde7e21b1fccdcb567cc95. --- packages/key-utils/src/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/key-utils/src/functions.ts b/packages/key-utils/src/functions.ts index c4366f79..70add634 100644 --- a/packages/key-utils/src/functions.ts +++ b/packages/key-utils/src/functions.ts @@ -28,7 +28,7 @@ export const logger = Loggers.DEFAULT.get('sphereon:key-utils') * @param kms. Optional KMS to use. If provided will be the returned name. Otherwise the default KMS will be returned */ export const getKms = async (context: IAgentContext, kms?: string): Promise => { - if (kms && kms !== 'default') { + if (kms) { return kms } if (!context.agent.availableMethods().includes('keyManagerGetDefaultKeyManagementSystem')) {