Example app to handle cookie consent UI and then dis/enable cookies

I took a phx.gen.auth application and added support for storing a user’s cookie consent settings. Created a couple of modal dialogs to handle user’s preferences. And a component that conditionally disables javascripts if the user has opted-out of cookies.

Comments appreciated. It’s not a library, just an example, but I suppose I could make a generator out of it if there was any interest.

3 Likes