completeLogin

fun completeLogin(    context: Context,     data: Intent,     onSuccess: () -> Unit,     onSynchronizationStarted: () -> Unit,     onSynchronizationFinished: () -> Unit,     onFail: (OpenIDError) -> Unit)

Complete the login using OpenID authentication credentials

Parameters

context

The application context.

data

The intent encapsulate the authorization response.

onSuccess

The authentication has been successfully done using the OpenID.

onSynchronizationStarted

The synchronization has been started.

onSynchronizationFinished

The synchronization is finished.

onFail

Called when an error occurs.