Tracks the Authentication State for the SDK

Constructors

Properties

error$: Observable<Error> = ...

Emits errors that occur during login, or when checking for an active session on startup.

idTokenClaims$: Observable<undefined | null | IdToken> = ...

Emits ID token claims when authenticated, or null if not authenticated.

isAuthenticated$: Observable<boolean> = ...

Emits boolean values indicating the authentication state of the user. If true, it means a user has authenticated. This depends on the value of isLoading$, so there is no need to manually check the loading state of the SDK.

isLoading$: Observable<boolean> = ...

Emits boolean values indicating the loading state of the SDK.

user$: Observable<undefined | null | User> = ...

Emits details about the authenticated user, or null if not authenticated.

Methods