removeIdentity

fun removeIdentity(callback: OnComplete? = null)

Removes the identity of the currently authenticated user from her/his Webcom account. This identity will then be no longer available for authenticating the user. All other identities attached to this account will remain and will still be available for authentication. However, note that if the removed identity is the last attached one to the user account, then the whole account is deleted (otherwise it would result in a "ghost" account with no means of authentication).

If no user is currently authenticated, then this operation fails.

In addition, as this operation is sensible, it also fails if the authentication token of the current user is too old. In this case, the application may ask the user to authenticate afresh.

See also

Parameters

callback

The callback called when the removal operation completes or fails