I’m using Webflow, jQuery AJAX, Memberstack, and a Node/Express.js server for a site I’m building.
There’s a POST request, and in order to check if the user isAuthenticated
, I’m using the “New Member” Webhook to save the member.id
to my own DB and checking it in the route.
When I was testing the Webhook however, I saw two almost identical ids. I’m not sure what that’s about:
Using the member
object from the MemberStack.onReady
function:
member.id
=== req.body.id
member.membership.id
=== req.body.membership.subscribed_to
…but what does req.body.membership.id
represent? It’s one digit off from the member.id
/ req.body.id