DittoAuthenticator

class DittoAuthenticator

Log in to a remote authentication service, using an Online identity.

Functions

isAuthenticated
Link copied to clipboard
fun isAuthenticated(): Boolean
Query whether Ditto has a valid authentication token.
loginWithCredentials
Link copied to clipboard
fun loginWithCredentials(username: String, password: String, provider: String, completion: (DittoError?) -> Unit)
Log in to Ditto with a username and password.
loginWithToken
Link copied to clipboard
fun loginWithToken(token: String, provider: String, completion: (DittoError?) -> Unit)
Log in to Ditto with a third-party token.

Properties

userID
Link copied to clipboard
val userID: String?
Return the currently logged-in user ID.