feat: added web redirect#2087
feat: added web redirect#2087RohitKushvaha01 wants to merge 5 commits intoAcode-Foundation:ajit/fix-fetch-auth-configfrom
Conversation
Greptile SummaryThis PR adds a web redirect flow for purchasing paid plugins when the native In-App Purchase (IAP) system is unavailable. Unauthenticated users are sent to the login page; authenticated users are sent to the plugin's web purchase page.
Confidence Score: 5/5The web-redirect logic is self-contained, guarded by try/catch, and consistent across both entry points; the only stray change is an unused import in plugin.js. Both redirect paths are correctly gated on IAP availability, ownership status, and login state. No data-integrity or security concerns were found. The unused No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User taps Buy button] --> B{config.IAP_AVAILABLE?}
B -- Yes --> C[Native IAP flow]
B -- No --> D[Call auth.getLoggedInUser]
D --> E{User logged in?}
E -- No --> F[Open login page in browser]
E -- Yes --> G[Open plugin purchase page in browser]
F --> H[User completes login on web]
G --> I[User completes purchase on web]
Reviews (2): Last reviewed commit: "fix: check owned before launching webpag..." | Re-trigger Greptile |
No description provided.