1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

add auth status to auth service (#8377)

* add auth status to auth service

* fix auth service factory
This commit is contained in:
Jake Fink
2024-03-26 09:56:20 -04:00
committed by GitHub
parent d000f081da
commit a46767dee2
7 changed files with 88 additions and 3 deletions

View File

@@ -1,6 +1,11 @@
import { Observable } from "rxjs";
import { AuthenticationStatus } from "../enums/authentication-status";
export abstract class AuthService {
getAuthStatus: (userId?: string) => Promise<AuthenticationStatus>;
logOut: (callback: () => void) => void;
/** Authentication status for the active user */
abstract activeAccountStatus$: Observable<AuthenticationStatus>;
/** @deprecated use {@link activeAccountStatus$} instead */
abstract getAuthStatus: (userId?: string) => Promise<AuthenticationStatus>;
abstract logOut: (callback: () => void) => void;
}