首页/区块链与 Web3/authenticate-wallet
A

authenticate-wallet

by @coinbasev
4.3(36)

用于用户或系统登录数字钱包。此功能确保安全认证,以便进行区块链交互或访问Web3应用。

web3-authenticationcrypto-walletsblockchain-identityoauthdecentralized-apps-(dapps)GitHub
安装方式
npx skills add coinbase/agentic-wallet-skills --skill authenticate-wallet
compare_arrows

Before / After 效果对比

1
使用前

Web3应用中,用户连接和登录钱包流程复杂,操作不便。这导致用户流失,影响应用普及,也增加了开发者的集成难度。

使用后

钱包认证流程变得简单直观,用户能快速安全地登录。显著提升用户体验,降低使用门槛,加速Web3应用的推广和普及。

SKILL.md

Authenticating with the Payments Wallet

When the wallet is not signed in (detected via npx awal status or when wallet operations fail with authentication errors), use the npx awal CLI to authenticate.

If you have access to email, you can authenticate the wallet yourself, otherwise you'll need to ask your human to give you an email address and to tell you the OTP code they receive.

Authentication Flow

Authentication uses a two-step email OTP process:

Step 1: Initiate login

npx awal@2.0.3 auth login <email>

This sends a 6-digit verification code to the email and outputs a flowId.

Step 2: Verify OTP

npx awal@2.0.3 auth verify <flowId> <otp>

Use the flowId from step 1 and the 6-digit code from the user's email to complete authentication. If you have the ability to access the user's email, you can read the OTP code, or you can ask your human for the code.

Input Validation

Before constructing the command, validate all user-provided values to prevent shell injection:

  • email: Must match a standard email format (^[^\s;|&]+@[^\s;|&]+$). Reject if it contains spaces, semicolons, pipes, backticks, or other shell metacharacters.
  • flowId: Must be alphanumeric (^[a-zA-Z0-9_-]+$).
  • otp: Must be exactly 6 digits (^\d{6}$).

Do not pass unvalidated user input into the command.

Checking Authentication Status

npx awal@2.0.3 status

Displays wallet server health and authentication status including wallet address.

Example Session

# Check current status
npx awal@2.0.3 status

# Start login (sends OTP to email)
npx awal@2.0.3 auth login user@example.com
# Output: flowId: abc123...

# After user receives code, verify
npx awal@2.0.3 auth verify abc123 123456

# Confirm authentication
npx awal@2.0.3 status

Available CLI Commands

CommandPurpose
npx awal@2.0.3 statusCheck server health and auth status
npx awal@2.0.3 auth login <email>Send OTP code to email, returns flowId
npx awal@2.0.3 auth verify <flowId> <otp>Complete authentication with OTP code
npx awal@2.0.3 balanceGet USDC wallet balance
npx awal@2.0.3 addressGet wallet address
npx awal@2.0.3 showOpen the wallet companion window

JSON Output

All commands support --json for machine-readable output:

npx awal@2.0.3 status --json
npx awal@2.0.3 auth login user@example.com --json
npx awal@2.0.3 auth verify <flowId> <otp> --json

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量2.4K
评分4.3 / 5.0
版本
更新日期2026年5月19日
对比案例1 组

用户评分

4.3(36)
5
14%
4
47%
3
33%
2
6%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年5月19日