mirror of
https://github.com/bitwarden/browser
synced 2026-02-21 20:04:02 +00:00
* refactor: introduce @bitwarden/serialization * refactor: introduce @bitwarden/guid * refactor: introduce @bitwaren/client-type * refactor: introduce @bitwarden/core-test-utils * refactor: introduce @bitwarden/state and @bitwarden/state-test-utils Creates initial project structure for centralized application state management. Part of modularization effort to extract state code from common. * Added state provider documentation to README. * Changed callouts to Github format. * Fixed linting on file name. * Forced git to accept rename --------- Co-authored-by: Todd Martin <tmartin@bitwarden.com>
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
import { Observable } from "rxjs";
|
|
|
|
import { UserId } from "@bitwarden/user-core";
|
|
|
|
export abstract class ActiveUserAccessor {
|
|
/**
|
|
* Returns a stream of the current active user for the application. The stream either emits the user id for that account
|
|
* or returns null if there is no current active user.
|
|
*/
|
|
abstract activeUserId$: Observable<UserId | null>;
|
|
}
|