AuthenticationState

sealed class AuthenticationState : AuthenticationEvent

Represents the transition to an authentication state.

Types

Authenticated
Link copied to clipboard

A user is currently authenticated with given details.

Invalid
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.

Unauthenticated
Link copied to clipboard

No user is currently authenticated or expected to authenticate.

Functions

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

Properties

appId
Link copied to clipboard
val appId: String

Identifier of the WebcomApplication this AuthenticationEvent relates to.

application
Link copied to clipboard
abstract val application: WebcomApplication

The WebcomApplication instance this AuthenticationEvent relates to.

details
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).

path
Link copied to clipboard
val path: String

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

Inheritors

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