1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-16 10:45:20 +01:00

add type to parameter of setUserKey in abstraction of crypto service

This commit is contained in:
Jacob Fink 2023-05-30 09:51:33 -04:00
parent 820c71d1a1
commit c7feae6238
No known key found for this signature in database
GPG Key ID: C2F7ACF05859D008

View File

@ -16,7 +16,7 @@ export abstract class CryptoService {
// TODO: This works right?
getKeyForUserEncryption: (key?: SymmetricCryptoKey) => Promise<SymmetricCryptoKey>;
setUserKey: (key: SymmetricCryptoKey) => Promise<void>;
setUserKey: (key: UserSymKey) => Promise<void>;
getUserKey: (keySuffix?: KeySuffixOptions, userId?: string) => Promise<UserSymKey>;
getUserKeyFromStorage: (keySuffix: KeySuffixOptions, userId?: string) => Promise<UserSymKey>;
hasUserKey: () => Promise<boolean>;