Skip to content

feat(examples): add authenticated-counter example with verifyJFSRequestBody#143

Open
CryptoExplor wants to merge 1 commit intofarcasterxyz:mainfrom
CryptoExplor:patch-4
Open

feat(examples): add authenticated-counter example with verifyJFSRequestBody#143
CryptoExplor wants to merge 1 commit intofarcasterxyz:mainfrom
CryptoExplor:patch-4

Conversation

@CryptoExplor
Copy link
Copy Markdown

Fixes #137

Adds a new examples/authenticated-counter snap that demonstrates:

  1. Calling verifyJFSRequestBody(ctx.request) in the POST handler
  2. Returning an error snap response when verification fails
  3. Using the verified fid to safely maintain per-user state

This is the reference implementation snap authors need when building authenticated features like leaderboards, vote/poll snaps, or any snap that writes data on behalf of a Farcaster user.

…stBody

Fixes farcasterxyz#137

Adds a new `examples/authenticated-counter` snap that demonstrates:
1. Calling `verifyJFSRequestBody(ctx.request)` in the POST handler
2. Returning an error snap response when verification fails
3. Using the verified `fid` to safely maintain per-user state

This is the reference implementation snap authors need when building authenticated features like leaderboards, vote/poll snaps, or any snap that writes data on behalf of a Farcaster user.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 11, 2026

@CryptoExplor is attempting to deploy a commit to the farcaster Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

examples: no example demonstrating verifyJFSRequestBody for authenticated POST handling

1 participant