5. Privacy Data Permissions
Configure the onboarding flow to ask for permissions to share privacy data with your dApp.

The privacy permissions flow easily allows users to consent to sharing their privacy data with your dApp in a few simple, secure steps.
When a user clicks to "Allow" Privacy Permissions, a request for a signature is presented, which the user must sign with their connected wallet in order to authorize consent for Privacy Data sharing.

In order to use this feature, application owners must have a working implementation of the Quadrata Client. A full example and integration steps can be found here: 6. Full Example
To enable the Privacy Permission flow in your dApp, you need to implement the following steps:
1. Import Privacy Consent Libs
2. Set the Privacy Permissions requested
Set the privacyScopes that will be requested from the user for consent. These need to be passed into QuadClient as a component prop.
You can find a full list of Privacy Permission Parameters that you can add to your privacyScopes on the "Request Privacy Data"."List of Privacy Data" page.
3. Handle Privacy Consent Signatures With State
Add the state related code to your dApp to manage the privacy consent signature along with the normal onboarding signature.
Update the handleSign method to manage the user consent signature that will be available once the user signs, granting access to their Privacy Data.
A boolean flag is passed as the second attribute to the QuadClient onSign event handler. This boolean represents whether or not the signature is for privacy consent or not.
When your dApp receives the consent signature, it needs to be passed back in as a component prop to QuadClient. To do this, update the state so the component re-renders.
4. Determine If Privacy Permissions Flow Is Needed
If a user has already allowed access to the Privacy Data that you are requesting, you may not want to put them into the onboarding flow a second time (unless there are unclaimed attributes).
To help you make this decision, the API Onboard Status endpoint has been modified to accept optional privacyScopes as a query parameter. If provided, the response payload will contain which permissions have already been allowed, and which permissions you need to ask the user for.
Privacy Permission Integration Example
Last updated