Testing

A comprehensive test page is available at /test-sdk:

Test Environment

A comprehensive test page is available at /test-sdk:

bun run dev
# Navigate to http://localhost:3000/test-sdk

Test Features:

  • Real-time status monitoring

  • All 5 verification modules

  • OAuth flow testing

  • Programmatic verification

  • State management testing

  • Live test log

Running Tests

1. Basic Module Test:

  • Click "Email Module"

  • Connect wallet

  • Should complete successfully

2. OAuth Test (GitHub):

  • Ensure GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET are set

  • Click "GitHub Module"

  • OAuth popup opens

  • Authorize

  • Popup closes

  • Verification completes

3. OAuth Test (Twitter):

  • Ensure TWITTER_CLIENT_ID and TWITTER_CLIENT_SECRET are set

  • Click "Twitter Module"

  • OAuth popup opens

  • Authorize

  • PKCE flow completes

  • Verification succeeds

4. Programmatic Test:

  • Scroll to "Programmatic Verification"

  • Click any module button

  • Verification runs without modal

  • Result displayed below

See TESTING_GUIDE.md for detailed testing instructions.


Deployment

Production Checklist

Before deploying to production:

Environment Variables

Required variables:

Last updated