isAuthenticated

fun isAuthenticated(): Boolean

Query whether Ditto has a valid authentication token.

This will only be true when using an Online identity, after a successful login. If the authentication token is allowed to expire then it will return false instead.