mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-06 04:20:58 +00:00
make product config optional
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user