-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add frame validate using neynar for neynar hubs (#292)
* feat: add frame validate using neynar for neynar hubs * fix: remove unnecessary async * feat: use hub api key instead * refactor: improve from feedback * chore: remove debugging console log * fix: comment; * chore: format * chore: changeset --------- Co-authored-by: Tom Meagher <tom@meagher.co>
- Loading branch information
1 parent
c6a209e
commit 0017052
Showing
5 changed files
with
87 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"frog": patch | ||
--- | ||
|
||
Added `verifyFrame` option to hub definition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import type { TrustedData } from './frame.js' | ||
|
||
export type Hub = { | ||
/** Hub API URL. */ | ||
apiUrl: string | ||
/** Options to pass to `fetch`. */ | ||
fetchOptions?: RequestInit | ||
/** Verify frame override. */ | ||
verifyFrame?: (parameters: { trustedData: TrustedData }) => Promise<void> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters