From 1c2c9cd4559585658c3965a75579a8bf1da991c9 Mon Sep 17 00:00:00 2001 From: Stuart Date: Sun, 23 Aug 2026 10:31:52 +1000 Subject: [PATCH] feat: send identity user_id with subscription checks Pairs with buildship feat/identities-revenue-attribution: the verified session JWT plus this user_id let stripe-get-subscription stamp billing state (email/tier/revenue) onto the caller's identities document. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index d9ba075..29644b3 100644 --- a/app.js +++ b/app.js @@ -4560,7 +4560,7 @@ async function fetchSubscription(options = {}) { const res = await fetch(`${BUILDSHIP_BASE_URL}/stripe/get-subscription`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ sessionToken: authState.sessionToken, email: authState.email }) + body: JSON.stringify({ sessionToken: authState.sessionToken, email: authState.email, user_id: identityState.userId }) }) const data = await res.json()