
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@contentful/experience-consent-manager
Advanced tools
A package for handling User Consent Management via [Osano](https://osano.com/).
@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/).
The npm package @contentful/experience-consent-manager receives a total of 0 weekly downloads. As such, @contentful/experience-consent-manager popularity was classified as not popular.
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.