Prebid is able to use the consent information collected by IAB-compliant CMPs through the standard CMP JS API (for GDPR) and the IAB CCPA API (for CCPA). The consent information is then passed down to the bidders/vendors that support those APIs.
To enable Prebid support for CMPs and have it work with Didomi, follow the steps listed on this page.
Add the consent management module to Prebid
Make sure that the consentManagement module is being added to your Prebid build: