4. QuadClient Package
<QuadClient /> Component
<QuadClient /> Component
<QuadClient />
Props
<QuadClient />
PropsProp | Description | Type |
---|---|---|
| JWT access token. See "API Authentication" page |
|
(required) | The user's wallet address. |
|
| An array of Quadrata attributes required by the protocol. See "Discover User Attributes" page. |
|
bypassMint (optional) | Indicates whether to show the mint screen to the onboarding user. Set to True if user is not required to mint passport onchain. Defaults to False. |
|
(required) | The decimal chain ID number of the currently connected network. In case of unsupported chain IDs the user will be navigated to the "Configuration Error" screen.
Tip: Supported chain IDs can be found in the |
|
| Overrides the default loader component inside of the form markup. This component will be shown in all loading states during the flow. if not defined, a "Loading..." text will be shown instead. |
|
| The class name to be appended to the component's root DOM element. |
|
(required) | The configuration object. See the "Configuration Section" below. |
|
| Toggle between dark and light mode. Default: false |
|
(optional) | Generic error text, when defined, an error message will appear at the bottom of the UI. |
|
| Upon a successful mint, pass a |
|
| String that can be passed to display a mint error message. If provided the client will be navigated to the |
|
| String or Number that can be passed to track Accreditation status for a company offering. If provided, the client will be navigated to an Accreditation Re-Attestation screen (when applicable) for re-attestation of the passport's Accreditation status. |
|
| A callback function: triggered when the application reaches an end state - error or completion. Event object includes status and error properties for additional information. |
Statuses:
- |
| A callback function: triggered when the applicant consents to privacy data sharing. tip: Import the PrivacyConsentScopeParamKey from the @quadrata/client-react library |
|
| A callback function: triggered when the modal is closed. | |
| A callback function. triggered when a user clicks Claim Passport. the event object passed to this function will contain all the data required to mint a passport.
|
|
| A callback function: triggered when the mint parameters are signed and ready. tip: useful in case the UI needs to prepare the transaction before initiating it, see example page. |
|
| A callback function: triggered when a page is changed. Passes a Page type string. tip: Import the |
|
(required) | A callback function. triggered when a user clicks Sign Wallet or Allow. It passes a message for the user to sign in the Onboarding and/or User Consent flow. |
|
| An array of Quadrata Privacy Parameter Names that can be requested from the users' privacy data. See "List of Privacy Data" page. |
|
| The user's signature of the "Welcome to Quadrata! By signing, you agree to the Terms of Service." message passed by the |
|
| The user's signature when granting access to privacy data. |
|
| The mint transaction hash. If the value is not undefined, it will trigger navigation to the "Mint in progress" page and will generate the Block explorer transaction link URL. |
|
Configuration Object
Pass a configuration object to the config
prop:
Always define your configuration object outside of your React components to prevent unexpected behavior
Property | Description | Type |
---|---|---|
(optional) | When true, debug information will be printed in the console. Never use in production. |
|
| Forcing a specific page to be displayed. Useful when styling and testing different pages. Set the _debug prop to |
|
| Contact email address Default: support@quadrata.com |
|
| An array of ISO country codes where the onboarding process is made unavailable. |
|
(optional) | Discord link URL Default: Quadrata Discord Server |
|
| Possible values:
Default: Never set to tip: The sandbox environment will not perform real verifications. |
|
| Your protocol name Example: "Acme, Inc." |
|
| Show or hide the social media share buttons on the "mint complete" page. Default: |
|
NOTE: Contact Quadrata via email to request API keys.
Get User's Permissions
Last updated