Skip to content

feat: implement SIWE authentication with iron-session and RainbowKit#992

Draft
dan13ram wants to merge 1 commit into
stagingfrom
feat/siwe
Draft

feat: implement SIWE authentication with iron-session and RainbowKit#992
dan13ram wants to merge 1 commit into
stagingfrom
feat/siwe

Conversation

@dan13ram

Copy link
Copy Markdown
Collaborator

Adds Sign-In with Ethereum (SIWE/ERC-4361) authentication using iron-session for stateless, cookie-based sessions with RainbowKit integration.

Adds Sign-In with Ethereum (SIWE/ERC-4361) authentication using iron-session
for stateless, cookie-based sessions with RainbowKit integration.

Changes:
- Add iron-session dependency for cookie-based session management
- Create SIWE API routes (nonce, verify, me, logout)
- Integrate RainbowKitAuthenticationProvider with custom SIWE adapter
- Protect API endpoints with authentication middleware (7 routes)
- Update environment configuration for iron-session

Technical Details:
- Uses iron-session v8 with getIronSession API
- Signature verification via viem's verifySiweMessage
- Automatic SIWE prompting after wallet connection
- No database required - fully stateless sessions
- Encrypted session cookies with configurable security

Protected Endpoints:
- /api/pinata/* (4 routes: generate-jwt, pin-json, pin-cid, upload-url)
- /api/ai/generateTxSummary
- /api/dashboard
- /api/alchemy/nft-metadata

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
testnet-nouns-builder Ready Ready Preview Jul 23, 2026 5:31pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
nouns-builder Ignored Ignored Jul 23, 2026 5:31pm

Request Review

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bec1a458-d7c1-4b73-bc16-65c8d86788dc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/siwe

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant