Wallet Authentication
This skill manages the authentication session for the fibx CLI. It uses a 2-step email OTP process managed by Privy.
Usage
Step 1: Initiate Login
Request an OTP code to be sent to the user's email.
bash
npx fibx@latest auth login <email>
Step 2: Verify OTP
Complete the login using the code provided by the user.
bash
npx fibx@latest auth verify <email> <code>
Check Status
Verify if the wallet is currently authenticated and view the wallet address.
bash
npx fibx@latest status
Examples
Full Login Flow
- •Agent: "I need to log you in. What is your email?"
- •User: "user@example.com"
- •Agent: Runs command:
bash
npx fibx@latest auth login user@example.com
- •Agent: "I've sent a code to your email. Please provide it."
- •User: "123456"
- •Agent: Runs command:
bash
npx fibx@latest auth verify user@example.com 123456
- •Agent: Validates success:
bash
npx fibx@latest status
Error Handling
- •"Invalid code": Ask the user to check the code and try
verifyagain. - •"Rate limit": Wait for a few seconds before retrying.
- •"Session expired": Restart the flow from Step 1.