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

fix: handle bad response format #232

Closed guilhem-fry closed 7 months ago

guilhem-fry commented 7 months ago

If the API ever returns a response the client doesn't know how to handle, then the client should default the consents to REJECTED.

I've also added a mock API with express designed for this purpose, as well as testing timeouts. Useful for manual debugging.