You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
@metamask/authenticated-user-storage 4.1.0
Added
Add getMarketingConsent and putMarketingConsent methods to AuthenticatedUserStorageService for managing the authenticated user's marketing consent, along with corresponding messenger actions (AuthenticatedUserStorageService:getMarketingConsent, AuthenticatedUserStorageService:putMarketingConsent) and the MarketingConsent type (#10390)
getMarketingConsent returns the marketing consent object or null on 404, mirroring getNotificationPreferences.
putMarketingConsent writes the full consent object and invalidates the getMarketingConsent cache on success.
Add getIdentitySharingConsent and putIdentitySharingConsent methods to AuthenticatedUserStorageService for recording per-audience identity-sharing consent, along with corresponding messenger actions (AuthenticatedUserStorageService:getIdentitySharingConsent, AuthenticatedUserStorageService:putIdentitySharingConsent) and the IdentitySharingConsent / IdentitySharingConsentWrite types (#10396)
getIdentitySharingConsent returns the granted-audience map or null on 404.
putIdentitySharingConsent writes a single { audience, granted } update (other audiences are unchanged) and invalidates the getIdentitySharingConsent cache on success.
Changed
Bump @metamask/utils from ^11.12.0 to ^12.0.0 (#10192)