Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@contentful/experience-consent-manager
Advanced tools
Readme
@contentful/experience-consent-manager
A package for handling User Consent Management via Osano.
What does it do?
isAnalyticsEnabled
onConsentChanged
and onError
yarn add @contentful/experience-consent-manager
// Import this unless you want to provide your own CSS
import '@contentful/experience-consent-manager/dist/style.css';
import { createConsentManager, ConsentCategory } from '@contentful/experience-consent-manager';
const manager = createConsentManager({
appKey: 'myApp', // e.g. compose, userInterface, launch ..etc
osano: {
// Required
configId: 'xxxxxxxx',
// Optional (but Recommended)
allowedCategories: [ConsentCategory.ESSENTIAL, ConsentCategory.ANALYTICS],
},
});
// Later on in your app (but as EARLY AS POSSIBLE)
manager.initialize({
// Required
getUserConsentData: () => {
return user.cookieConsentData;
},
// Optional (but Recommended)
onConsentChanged: (consent) => {
// You probably want to save this to /users/me under appKey namespace.
},
onError: (error) => {
// Log this somewhere, e.g. Sentry?
},
// ...
// ...
// For the full list of options see src/ConsentManager.ts
});
FAQs
A package for handling User Consent Management via [Osano](https://osano.com/).
We found that @contentful/experience-consent-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 113 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.