awaitSyncPurchasesEither

suspend fun <Error class: unknown class>.awaitSyncPurchasesEither(): Either<<Error class: unknown class>, <Error class: unknown class>>

This method will send all the purchases to the RevenueCat backend. Call this when using your own implementation for subscriptions anytime a sync is needed, such as when migrating existing users to RevenueCat.

Warning: This function should only be called if you're migrating to RevenueCat or in observer mode.

Warning: This function could take a relatively long time to execute, depending on the amount of purchases the user has. Consider that when waiting for this operation to complete.

Return

An Either.Right containing CustomerInfo if successful, an Either.Left containing a PurchasesError in case of a failure.