User Consent & Terms
Discover how individuals interact with Consent Contracts by agreeing to specific "Terms." This page explains how users give, review, update, or withdraw their consent, empowering them with granular control over their data sharing preferences with different services.
Terms Structure
A typical terms example:
{
read: {
personal: { name: 'Full Fullerson' },
credentials: {
shareAll: true,
sharing: true,
categories: {
Achievement: {
shareAll: true,
sharing: true,
shared: ['achievement1', 'achievement2']
},
ID: {
shareAll: true,
sharing: true,
shared: ['id1', 'id2']
}
}
}
},
write: {
personal: { name: true },
credentials: {
categories: {
Achievement: true,
ID: true
}
}
}
}
Managing Consent
From the perspective of the user who consented to a ConsentFlow Contract, consented terms can be:
Retrieved using
getConsentedContracts
(paginated list)Updated using
updateConsentedContractTerms
Withdrawn using
withdrawConsent
Last updated
Was this helpful?