Open
Conversation
* Rought draft PR * Updated Farcaster auth * fix(deno): add Farcaster, viem, Neynar, Pinata deps and fix .ts imports * fmt --------- Co-authored-by: Prakhar Ojha <[email protected]> Co-authored-by: Prakhar Ojha <[email protected]>
* Rought draft PR * Updated Farcaster auth * fix(deno): add Farcaster, viem, Neynar, Pinata deps and fix .ts imports --------- Co-authored-by: Prakhar Ojha <[email protected]> Co-authored-by: Prakhar Ojha <[email protected]> Co-authored-by: Elliot Braem <[email protected]>
…v-based config, updated SDK to require/send Authorization, and provided concise migration docs. (#33) * init * init files * rename plugin * feat: Complete SDK to plugin migration * Fix merge conflict in packages/package.json * Fix remaining merge conflicts * feat: Complete plugin migration with full functionality * Fix incorrect base URL references from api.crosspost.near to api.opencrosspost.com * feat: migrate to improved NEAR auth with enhanced security - Upgraded near-sign-verify from 0.3.6 to 0.4.3 - Added environment-based NEAR auth configuration (recipient, nonce age, access key requirements) - Enforced signed tokens for all HTTP methods including GET requests - Removed insecure X-Near-Account header authentication - Updated SDK to require authToken in constructor - Improved error messages and development logging - Added comprehensive migration documentation BREAKING CHANGES: - SDK now requires authToken parameter - GET requests require NEAR signatures - Removed setAccountHeader() method from SDK --------- Co-authored-by: Elliot Braem <[email protected]>
* init farcaster plugin * feat: Add comprehensive error handling with Neynar error mapping - Create error-mapping.ts utility to map Neynar API errors to user-friendly messages - Map status codes: 401 (unauthorized), 403 (forbidden/pending approval), 404 (not found), 429 (rate limited), 400 (invalid), 402 (payment required), 500+ (service unavailable) - Add network error detection and retry-after header parsing - Update all adapters (auth, post, media, profile) to use error mapping - Update client-factory to use error mapping - Replace generic error messages with specific, actionable error messages --------- Co-authored-by: lokmali <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.