mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[PM-6037] Fix process reload not triggering on inactive account lock/logout (#9805)
* Send loggedOut/locked events on logout/lock event
* Revert "Send loggedOut/locked events on logout/lock event"
This reverts commit 293f2d6131.
* Ensure loggedOut is sent for non-active user logouts too
* Make loggedOut accept userIds
* Add userBeingLoggedOut in desktop app component
* Await updateconnection calls
This commit is contained in:
@@ -16,5 +16,5 @@ export abstract class AuthService {
|
||||
abstract authStatusFor$(userId: UserId): Observable<AuthenticationStatus>;
|
||||
/** @deprecated use {@link activeAccountStatus$} instead */
|
||||
abstract getAuthStatus: (userId?: string) => Promise<AuthenticationStatus>;
|
||||
abstract logOut: (callback: () => void) => void;
|
||||
abstract logOut: (callback: () => void, userId?: string) => void;
|
||||
}
|
||||
|
||||
@@ -93,8 +93,8 @@ export class AuthService implements AuthServiceAbstraction {
|
||||
return await firstValueFrom(this.authStatusFor$(userId as UserId));
|
||||
}
|
||||
|
||||
logOut(callback: () => void) {
|
||||
logOut(callback: () => void, userId?: string): void {
|
||||
callback();
|
||||
this.messageSender.send("loggedOut");
|
||||
this.messageSender.send("loggedOut", { userId });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user