verifyAndAuthenticate

fun verifyAndAuthenticate(token: String, callback: WebcomResultCallback<AuthenticationDetails>? = null)

Verify a previously attached identity with the token the user has just received, as the final step of an identity attachment call-flow, and, if successful authenticates the user with this identity (or authentication means).

This method fails if the first step of the call-flow (ie. calling attachIdentity) has not been performed.

This operation is asynchronous and calls the given callback with the authentication result once performed.