loginWithToken

fun loginWithToken(token: String, provider: String, completion: (DittoError?) -> Unit)

Log in to Ditto with a third-party token.

Parameters

token

the authentication token required to log in.

provider

the name of the authentication provider.

completion

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