πŸš€ Enhanced Onairos Live Mode Test

Testing live APIs with enhanced visual design and callback functionality

βœ… Enhanced Features

  • 🎨 Improved visual design with modern UI components
  • πŸ“‹ Correct data types: Basic Info, Personality, Preferences
  • πŸ”„ Auto mode toggle (default false for API URL return)
  • πŸ§ͺ Test/Live mode switching with proper endpoints
  • πŸ”— Proper callback handling with backend Info format
  • βœ… Visual checkmarks for selected data types
  • πŸ—‚οΈ Data mapping: basicβ†’Medium, personalityβ†’Large, preferencesβ†’Traits

πŸ”§ API Configuration

Live Mode: ENABLED
Live Endpoint: api2.onairos.uk/getAPIurlMobile
Test Endpoint: api2.onairos.uk/inferenceTest
Auto Fetch: FALSE (returns API URL)

πŸ§ͺ Test Mode

Uses /inferenceTest endpoint with mock data

πŸš€ Live Mode

Uses /inference endpoint with real data

πŸ”„ Auto Fetch Mode

Automatically calls API and returns results

πŸ”§ Backend API Format:

Request Format (Live Mode):

{
  "Info": {
    "storage": "local",
    "appId": "YourApp",
    "confirmations": [
      {"data": "Medium", "date": "2024-01-15T10:30:00Z"},
      {"data": "Large", "date": "2024-01-15T10:30:00Z"}
    ],
    "EncryptedUserPin": "encrypted_pin",
    "account": "user@example.com",
    "proofMode": false,
    "Domain": "yourapp.com",
    "web3Type": "standard",
    "OthentSub": null
  }
}

Data Type Mapping:

basic β†’ Medium
personality β†’ Large
preferences β†’ Traits
Backend determines API based on confirmations:
β€’ Traits only β†’ /traits
β€’ Large/Medium β†’ /inferenceNoProof
β€’ Both β†’ /combined-inference
πŸ“± Mobile Browser Support:
β€’ Auto-detects mobile devices
β€’ Uses redirect OAuth flow (not popups)
β€’ Same React components work perfectly

Current Configuration:

Test Mode: false
Auto Fetch: false
Endpoint: api2.onairos.uk/inference
Mode: LIVE

Click to Test Enhanced Onairos Flow:

πŸ“‹ Test Logs: