mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[PM-21705] Require userID for refreshAdditionalKeys() on key-service (#14810)
* Require userID for refreshAdditionalKeys() * Add error handling to desktop Unlock settings * Add more unit test coverage
This commit is contained in:
@@ -83,8 +83,11 @@ export abstract class KeyService {
|
||||
* Gets the user key from memory and sets it again,
|
||||
* kicking off a refresh of any additional keys
|
||||
* (such as auto, biometrics, or pin)
|
||||
* @param userId The target user to refresh keys for.
|
||||
* @throws Error when userId is null or undefined.
|
||||
* @throws When userKey doesn't exist in memory for the target user.
|
||||
*/
|
||||
abstract refreshAdditionalKeys(): Promise<void>;
|
||||
abstract refreshAdditionalKeys(userId: UserId): Promise<void>;
|
||||
|
||||
/**
|
||||
* Observable value that returns whether or not the user has ever had a userKey,
|
||||
|
||||
Reference in New Issue
Block a user