loginWithCredentials

fun loginWithCredentials(username: String, password: String, provider: String, completion: (DittoError?) -> Unit)

Deprecated

Use the `login` method that provides access to the clientInfo JSON string in the completion callback instead.

Replace with

login(token, provider, completionCallback)

Log in to Ditto with a username and password.

Parameters

username

the username component of the credentials used for log in.

password

the password component of the credentials used for log in.

provider

the name of the authentication provider.

completion

a lambda that will get called when the login attempt has completed.


fun loginWithCredentials(username: String, password: String, provider: String, completionCallback: DittoLoginCompletionCallback)

Deprecated

Use the `login` method that provides access to the clientInfo JSON string in the completion callback instead.

Replace with

login(token, provider, completionCallback)

Log in to Ditto with a username and password.

Parameters

username

the username component of the credentials used for log in.

password

the password component of the credentials used for log in.

provider

the name of the authentication provider.

completionCallback

an object that implements the DittoLoginCompletionCallback interface, whose callback method will be called when the login attempt has completed.