Repository navigation
Conversation
Expose a server-only verifier for cataloged consumables and permanent unlocks. Use the Apple certificate chain and account token before returning the fields needed for retry-safe delivery. Co-authored-by: Codex <noreply@openai.com>
Defer loading the Apple crypto library until verification so backend functions can configure their verifier at module scope. Cover startup ordering alongside signed-purchase tests. Co-authored-by: Codex <noreply@openai.com>
Bind enrollment to the authenticated account and refresh its original transaction through Apple. Verify current product, ownership, expiration and billing grace before granting access. Co-authored-by: Codex <noreply@openai.com>
Bundle the request-scoped Apple library with a native fetch adapter for binary certificate status responses. Check the shipped entry point in CI and include third-party license notices. Co-authored-by: Codex <noreply@openai.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent (for reviewers)
Let an authenticated app backend deliver one-time iOS purchases and check current access for auto-renewable subscriptions. The server-only entry point is
@base44/sdk/iap. It accepts an explicit app identity, environment, and product catalog. The main SDK entry remains free of Apple verification code.The one-time helper returns the verified transaction ID and quantity. The application records the grant once and acknowledges it after delivery. The subscription service binds the original transaction ID to the current account and checks the latest status with Apple when access is needed. A one-time purchase snapshot still needs separate reconciliation for later refunds.
Summary
appAccountTokenForandcreateApplePurchaseVerifierfor consumable and non-consumable StoreKit purchases.createAppleSubscriptionServicewithverifyPurchasefor enrollment andgetStatusfor live entitlements. It limits the Apple response to the stored subscription, verifies signed grace deadlines, and respects cancellation through the paid period, expiration, billing retry, and revocation. App Store Server API keys stay in the backend.Dependency review
Adds Apple’s official
@apple/app-store-server-library@3.1.0and updatespackage-lock.json. The server entry uses a native fetch adapter for Apple’s binary certificate status response and timeout. The build declares the existing lockedrolldown@1.0.3directly and includes the bundled license notices. Its Node type dependency requires the lockfile’s Node type definitions to move to a compatible version. The trust anchors come from Apple PKI. The npm runtime advisory lookup returned one existing advisory forws@8.21.0, already locked on main. GHSA-37g9-w4hg-h9qrVerification
.jsdeep imports still work without loading the Apple verifier.Generated with Codex.