make product config optional

This commit is contained in:
Shawn Erquhart
2025-02-25 17:12:44 -05:00
parent 5d1a4bc695
commit 1db4b9c424
5 changed files with 30 additions and 12 deletions

View File

@@ -29,7 +29,13 @@ export const MAX_PREMIUM_TODOS = 6;
export const {
changeCurrentSubscription,
cancelCurrentSubscription,
getProducts,
// If you configure your products by key in the Polar constructor,
// this query provides a keyed object of the products.
getConfiguredProducts,
// This provides all products, useful if you don't configure products by key.
listAllProducts,
} = polar.api();
export const { generateCustomerPortalUrl } = polar.checkoutApi();