loginWithToken

fun loginWithToken(token: String, callback: (Customer?, SdkError?) -> Unit? = null)

Login customer using a previously obtained customer token.

Example:

fun loginWithToken() {
FlyBuyCore.getInstance().customer.loginWithToken("token") { customer, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}
}