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:
parent
820c71d1a1
commit
c7feae6238
@ -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>;
|
||||
|
Loading…
Reference in New Issue
Block a user