logInWith

fun Purchases.logInWith(    appUserID: String,     onError: (error: PurchasesError) -> Unit = ON_ERROR_STUB,     onSuccess: (customerInfo: CustomerInfo, created: Boolean) -> Unit)

This function will change the current appUserID. Typically this would be used after a log out to identify a new user without calling configure

Parameters

appUserID

The new appUserID that should be linked to the currently user

onSuccess

Will be called after the call has completed.

onError

Will be called after the call has completed with an error.

Sources

Link copied to clipboard