Checking consent

August 20, 2025

The has() method returns a boolean value and checks if the user has given consent for a specific purpose. It allows for simple & complex checks. This can be used to conditionally render content based on the user's consent, for example.