From c7feae62380b15079052a5091ce7ead45cf5ba03 Mon Sep 17 00:00:00 2001 From: Jacob Fink Date: Tue, 30 May 2023 09:51:33 -0400 Subject: [PATCH] add type to parameter of setUserKey in abstraction of crypto service --- libs/common/src/platform/abstractions/crypto.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/platform/abstractions/crypto.service.ts b/libs/common/src/platform/abstractions/crypto.service.ts index f9bdbc32c50..8dee1002426 100644 --- a/libs/common/src/platform/abstractions/crypto.service.ts +++ b/libs/common/src/platform/abstractions/crypto.service.ts @@ -16,7 +16,7 @@ export abstract class CryptoService { // TODO: This works right? getKeyForUserEncryption: (key?: SymmetricCryptoKey) => Promise; - setUserKey: (key: SymmetricCryptoKey) => Promise; + setUserKey: (key: UserSymKey) => Promise; getUserKey: (keySuffix?: KeySuffixOptions, userId?: string) => Promise; getUserKeyFromStorage: (keySuffix: KeySuffixOptions, userId?: string) => Promise; hasUserKey: () => Promise;