@farcaster/miniapp-node
v0.1.11
Published
Utility methods for Mini App backends
Keywords
Readme
@farcaster/miniapp-node
Utility methods for Mini App backends
Installation
pnpm add @farcaster/miniapp-nodeDocumentation
parseWebhookEvent: parses and verifies webhook events, using aVerifyAppKeymethodverifyJsonFarcasterSignature: verifies a JSON Farcaster Signature payload, using aVerifyAppKeymethodcreateJsonFarcasterSignature: 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.
