mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
[PM-21797] Require userID for keyService's getUserKeyFromStorage (#14855)
* require userID for keyService's getUserKeyFromStorage
This commit is contained in:
@@ -128,10 +128,11 @@ export abstract class KeyService {
|
||||
* @param keySuffix The desired version of the user's key to retrieve
|
||||
* @param userId The desired user
|
||||
* @returns The user key
|
||||
* @throws Error when userId is null or undefined.
|
||||
*/
|
||||
abstract getUserKeyFromStorage(
|
||||
keySuffix: KeySuffixOptions,
|
||||
userId?: string,
|
||||
userId: string,
|
||||
): Promise<UserKey | null>;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user