I'm using OneTrust for cookie consent in our Next.js project, but the cookie banner keeps reappearing every time I refresh the page, even after clicking the "Accept All Cookies" button.
Here's the relevant script I'm using:
// onetrust.js
// Imported this script file in layout.tsx
function OptanonWrapper() { }
Has anyone encountered this issue before? Any suggestions on how to fix it?
Thanks in advance for your help!