The Memberstack Admin Package provides server-side methods for verifying webhooks and JWT tokens, as well as performing CRUD operations on Members.
The package is available for Node.js and as a REST API. The Node.js version can be installed via npm or Yarn. The REST API has a base URL of https://admin.memberstack.com.
Read the full articles:
Both versions use secret keys for authentication, which can be obtained from the Memberstack dashboard. It's important to keep these keys secure on the server side. The Node.js package is initialized by passing the key to the init method. The REST API uses the key via X-API-KEY headers.
The Member object enables CRUD functionality on members in a Memberstack app instance. Methods are available for actions like listing members, retrieving members by ID or email, creating/updating members, deleting members, and managing a member's plans.
Keywords: Verify, retrieve, payload, token, Parameters, Request Examples, memberstackAdmin, initialization, object, npm, memberstackAdmin, init, verifyToken, verifySignature, GET /members/:id, PATCH /members/:id, DELETE /members/:id, POST /members, plans, customFields, metaData, loginRedirect, after, order, limit, totalCount, endCursor, hasMore, data.