AuthenticationState

sealed class AuthenticationState : AuthenticationEvent

Represents the transition to an authentication state.

Types

Authenticated
Link copied to clipboard
data class Authenticated(details: AuthenticationDetails) : AuthenticationEvent.AuthenticationState
A user is currently authenticated with given details.
Invalid
Link copied to clipboard
object Invalid : AuthenticationEvent.AuthenticationState
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
object Unauthenticated : AuthenticationEvent.AuthenticationState
No user is currently neither authenticated nor expected to authenticate.

Functions

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

Properties

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

Inheritors

AuthenticationEvent.AuthenticationState
Link copied to clipboard
AuthenticationEvent.AuthenticationState
Link copied to clipboard
AuthenticationEvent.AuthenticationState
Link copied to clipboard