DittoAuthenticationStatus

data class DittoAuthenticationStatus(val isAuthenticated: Boolean, val userId: String?)

Provides info about the authentication status.

Constructors

Link copied to clipboard
fun DittoAuthenticationStatus(isAuthenticated: Boolean, userId: String?)

Properties

Link copied to clipboard
val isAuthenticated: Boolean

Returns true if authenticated, otherwise returns false.

Link copied to clipboard
val userId: String?

If authenticated, returns the userId if one was provided by the authentication service. Otherwise returns null.