mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[PM-21611] Require userId on KeyService clear methods (#14788)
This commit is contained in:
@@ -59,5 +59,5 @@ export abstract class VaultTimeoutSettingsService {
|
||||
*/
|
||||
isBiometricLockSet: (userId?: string) => Promise<boolean>;
|
||||
|
||||
clear: (userId?: string) => Promise<void>;
|
||||
clear: (userId: UserId) => Promise<void>;
|
||||
}
|
||||
|
||||
@@ -287,7 +287,7 @@ export class VaultTimeoutSettingsService implements VaultTimeoutSettingsServiceA
|
||||
return availableActions;
|
||||
}
|
||||
|
||||
async clear(userId?: string): Promise<void> {
|
||||
async clear(userId: UserId): Promise<void> {
|
||||
await this.keyService.clearPinKeys(userId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user