1 Line of Code
You thought we were joking? No really just 1* line of code
Last updated
You thought we were joking? No really just 1* line of code
Last updated
Instantiate the Onairos object from the Onairos package to add the Onairos button onto your application which asks the user for the Persona Data
className : Tailwindcss (CSS) for height, width sizing and margins
Onairos Object fields:
webpageName - String - Required - App Display Name
requestData - Json - Required - User Request data (
textColor - String - Optional - Text Color of Onairos Button
textLayout - String - Optional - Position of Onairos Title relative to Button Icon
autoFetch - Boolean - Optional - Whether to automatically fetch user data as soon as they consent
onComplete - Function - Optional - Function to fetch user data via API manually
inferenceData - Json () - Optional (Required if autoFetch = true) - Inference Input Data
proofMode
- Boolean - Optional - ZK proof returned after recieving Data
Create the Request Object which Users will Authorize (or not) in the extension popup
RequestObject.size key:
Small
- Upto 16 inference items
Medium
- Upto 32 inference items
Large
- Upto 64 inference items
Individual Request Information:
type
: Only the Personality key is valid at this time (represents the users Onairos Personality)
description
: Description to display to users about your request
reward
: Reward Given to User for granting Data Request
Please go to our to see an example Onairos integration
If you set autoFetch = false, you will need to manually fetch the user data using the