alphagov / consent-api

Service for sharing user consent to cookies across multiple domains
https://consent-api-bgzqvpmbyq-nw.a.run.app
MIT License
8 stars 0 forks source link

feat: let the client handle the cookies #204

Closed guilhem-fry closed 10 months ago

guilhem-fry commented 10 months ago

This PR aims at simplifying the user experience of the library, by letting the library handle all the management of the browser cookies. Users of the library will be able to interact with Single Consent via a higher level API, such as class methods, instead of having to parse / write the cookies themselves.

Changelog

Examples

Additionally, the examples have been updated. I've removed example/utils.js since that logic is now handled by the library.