INNER CODE UNIT · TypeScript
restoreSubscription
Flaque/quirk · src/payments/index.ts:85
export const restoreSubscription = async (): Promise<void> => {
userRestoredPurchase();
try {
await Purchases.restoreTransactions();
} catch (err) {
log("Error", err);
Sentry.captureException(err);
}
};