Skip to content

Commit

Permalink
Revert "chore: Allow default values for kms as kms is not optional in…
Browse files Browse the repository at this point in the history
… Veramo APIs"

This reverts commit a6e506b.
  • Loading branch information
sanderPostma committed Sep 16, 2024
1 parent a6e506b commit 708742c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/key-utils/src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>, kms?: string): Promise<string> => {
if (kms && kms !== 'default') {
if (kms) {
return kms
}
if (!context.agent.availableMethods().includes('keyManagerGetDefaultKeyManagementSystem')) {
Expand Down

0 comments on commit 708742c

Please sign in to comment.