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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user