Utility methods for Mini App backends
npm install @farcaster/miniapp-nodeUtility methods for Mini App backends
``bash`
pnpm add @farcaster/miniapp-node
- parseWebhookEvent: parses and verifies webhook events, using a VerifyAppKey methodverifyJsonFarcasterSignature
- : verifies a JSON Farcaster Signature payload, using a VerifyAppKey methodcreateJsonFarcasterSignature
- : creates a JSON Farcaster Signature payload
For signature verification, you need to pass in a VerifyAppKey method that verifies that an app key is valid for an FID. You can use the included verifyAppKeyWithNeynar which uses Neynar and requires the NEYNAR_API_KEY` environment variable to be defined.