AuthUser

data class AuthUser(val user: User, val socketConnected: Boolean)

Represents a result from awaitConnect and awaitAuthenticate. This will give the User and the socket connection status, which is true if the socket is connected, false otherwise.

When using local caching, awaitConnect can result in failure to connect socket, which will be denoted by socketConnected with false, but the User can still be valid if it's read from the local cache.

Since

4.15.0

See also

Constructors

Link copied to clipboard
constructor(user: User, socketConnected: Boolean)

Properties

Link copied to clipboard

Indicates whether the socket connection has been made

Link copied to clipboard
val user: User

The authenticated User object.