UNPKG

a0-purchases

Version:

Lightweight subscription management for AI apps with auto-detecting providers

11 lines 701 B
// src/iap/constants.ts export const API_BASE_URL = __DEV__ ? "http://localhost:3001/purchases/v1" : "https://api.a0.dev/purchases/v1"; import { A0_CONFIG } from 'a0-config'; if (!A0_CONFIG) { console.error("A0_CONFIG is not set"); } export const APP_ID = A0_CONFIG === null || A0_CONFIG === void 0 ? void 0 : A0_CONFIG.projectId; export const API_KEY = A0_CONFIG === null || A0_CONFIG === void 0 ? void 0 : A0_CONFIG.apiKey; export const APP_LIVE = A0_CONFIG === null || A0_CONFIG === void 0 ? void 0 : A0_CONFIG.live; export const USER_ID_STORAGE_KEY = `@iap_user_id_${APP_ID !== null && APP_ID !== void 0 ? APP_ID : "global"}_${APP_LIVE ? "live" : "dev"}`; //# sourceMappingURL=constants.js.map