AuthenticationState

sealed class AuthenticationState : AuthenticationEvent

Represents the transition to an authentication state.

Types

Link copied to clipboard

A user is currently authenticated with given details.

Link copied to clipboard

The authentication token used so far has become invalid (e.g., it is expired) and the previously authenticated user (who is no longer authenticated) is expected to authenticate again.

Link copied to clipboard

No user is currently authenticated or expected to authenticate.

Functions

Link copied to clipboard
open fun isAuthenticated(): Boolean
Link copied to clipboard
open fun isUnauthenticated(): Boolean

Properties

Link copied to clipboard
val appId: String

Identifier of the WebcomApplication this AuthenticationEvent relates to.

Link copied to clipboard
abstract val application: WebcomApplication

The WebcomApplication instance this AuthenticationEvent relates to.

Link copied to clipboard
open val details: AuthenticationDetails? = null

All the properties that describe the authenticated user if isAuthenticated returns true or null otherwise (no user is authenticated).

Link copied to clipboard
val path: String

Meaningless property (always equals the empty string) because AuthenticationEvents don't relate to any data node.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard