authenticate

fun authenticate(    oneTimePassword: String,     context: AuthenticationService.Context = Context.New,     callback: WebcomResultCallback<AuthenticationDetails>? = null)

Authenticates the user with the oneTimePassword s·he has just received, as the final step of an authentication call-flow. This operation is asynchronous and calls the given callback with the authentication result once performed.

This method fails if the first step of the call-flow (i.e. calling sendOneTimePassword) has not been performed.

In order to perform a multi-factor authentication, context must be set to Context.Current and the user to authenticate must already be authenticated with another method (or factor).