1
0
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:
Thomas Avery
2025-05-30 13:45:31 -05:00
committed by GitHub
parent 9f9cb0d13d
commit eba22cf5f8
3 changed files with 85 additions and 4 deletions

View File

@@ -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>;
/**