スキル一覧に戻る
Stacked-Labs

web3-thirdweb-siwe

by Stacked-Labs

Stacked Poker is a Web3 application allowing users to host their own games using a variety of digital assets

2🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: web3-thirdweb-siwe description: Implement and debug wallet connection and authentication in this repo using thirdweb v5 and the SIWE-style flow in app/hooks/useWalletAuth.ts and app/hooks/server_actions.ts. Use for ConnectButton setup, account state, signature/auth verification, Base/USDC config, and CSP issues with embedded wallet.

Web3 (thirdweb v5) + SIWE Auth (Stacked Poker)

Repo entry points

  • thirdweb client + wallets: app/thirdwebclient.ts
  • Provider wiring: app/providers.tsx
  • Connect UI: app/components/WalletButton.tsx
  • Auth orchestration: app/hooks/useWalletAuth.ts, app/contexts/AuthContext.tsx
  • Backend calls: app/hooks/server_actions.ts
  • Security headers / embedded wallet frames: next.config.js

Documentation sources (don’t paste full docs)

Debug workflow (common issues)

  1. Confirm env is set:
    • NEXT_PUBLIC_THIRDWEB_CLIENT_ID
    • NEXT_PUBLIC_API_URL
    • NEXT_PUBLIC_WS_URL
  2. Confirm CSP allows thirdweb embedded wallet frames and network:
    • frame-src includes https://embedded-wallet.thirdweb.com
    • connect-src allows required hosts
  3. Trace auth flow:
    • getAuthPayload(address) → returns { payload, message }
    • account.signMessage({ message }) (sign the message string)
    • verifySignedPayload({ payload, signature })
    • On failure, disconnect wallet and clear attempt ref

What to load next

  • For the repo’s exact auth sequence and edge cases: read references/auth-flow.md.
  • For CSP gotchas (embedded wallet / Turnstile / Tenor): read references/csp-and-headers.md.
  • To quickly sanity-check env vars: run scripts/check-web3-env.sh.

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です