mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[PM-12628] Fix cli showing locked status when using session and check (#17515)
* Fix cli showing locked status when using session and check * Cleanup
This commit is contained in:
@@ -277,6 +277,11 @@ export class Program extends BaseProgram {
|
|||||||
})
|
})
|
||||||
.option("--check", "Check lock status.", async () => {
|
.option("--check", "Check lock status.", async () => {
|
||||||
await this.exitIfNotAuthed();
|
await this.exitIfNotAuthed();
|
||||||
|
const userId = (await firstValueFrom(this.serviceContainer.accountService.activeAccount$))
|
||||||
|
?.id;
|
||||||
|
await this.serviceContainer.userAutoUnlockKeyService.setUserKeyInMemoryIfAutoUserKeySet(
|
||||||
|
userId,
|
||||||
|
);
|
||||||
|
|
||||||
const authStatus = await this.serviceContainer.authService.getAuthStatus();
|
const authStatus = await this.serviceContainer.authService.getAuthStatus();
|
||||||
if (authStatus === AuthenticationStatus.Unlocked) {
|
if (authStatus === AuthenticationStatus.Unlocked) {
|
||||||
|
|||||||
Reference in New Issue
Block a user