-
Notifications
You must be signed in to change notification settings - Fork 306
Docs/fix notification doc #588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,14 +38,11 @@ Notification tokens are unique to each client app. This means a user can have se | |
| <Step title="Create a webhook server"> | ||
| Create a webhook server to handle webhook events. | ||
|
|
||
| <Info> | ||
| The `data` object returned by `parseWebhookEvent` contains three key fields: | ||
| - **`fid`**: The user's FID | ||
| - **`appFid`**: The client's FID (the Base app is 309857) | ||
| - **`event`**: The event payload with type and notification details | ||
|
|
||
| Always use both `fid` and `appFid` together to identify a unique user-client combination. | ||
| </Info> | ||
| <Info> | ||
|
||
| This code uses Neynar to verify webhook events. Make sure you have: | ||
| 1. Signed up for a [Neynar API key](https://neynar.com) (free tier available) | ||
| 2. Set the `NEYNAR_API_KEY` environment variable in your project. | ||
| </Info> | ||
|
|
||
| ```ts app/api/webhook/route.ts expandable highlight={20-50} | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing this?