mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
add type to parameter of setUserKey in abstraction of crypto service
This commit is contained in:
@@ -16,7 +16,7 @@ export abstract class CryptoService {
|
|||||||
// TODO: This works right?
|
// TODO: This works right?
|
||||||
getKeyForUserEncryption: (key?: SymmetricCryptoKey) => Promise<SymmetricCryptoKey>;
|
getKeyForUserEncryption: (key?: SymmetricCryptoKey) => Promise<SymmetricCryptoKey>;
|
||||||
|
|
||||||
setUserKey: (key: SymmetricCryptoKey) => Promise<void>;
|
setUserKey: (key: UserSymKey) => Promise<void>;
|
||||||
getUserKey: (keySuffix?: KeySuffixOptions, userId?: string) => Promise<UserSymKey>;
|
getUserKey: (keySuffix?: KeySuffixOptions, userId?: string) => Promise<UserSymKey>;
|
||||||
getUserKeyFromStorage: (keySuffix: KeySuffixOptions, userId?: string) => Promise<UserSymKey>;
|
getUserKeyFromStorage: (keySuffix: KeySuffixOptions, userId?: string) => Promise<UserSymKey>;
|
||||||
hasUserKey: () => Promise<boolean>;
|
hasUserKey: () => Promise<boolean>;
|
||||||
|
|||||||
Reference in New Issue
Block a user