Redirect to Consent form issue

Hello,
I am trying to implement the Track Consent flow in my application like described in https://auth0.com/docs/compliance/gdpr/features-aiding-compliance/user-consent/track-consent-with-lock

I am implementing Option 3, which is redirection to a Consent form after Login. The application is using the Implicit grant flow.

The problem is when the user gives consent and the form is submitted to the continue url of auth0, I am getting a 401 Unauthorised error. Attempting to debug the issue, I’ve noticed that the redirect rule will not be called at all.

Also state parameter that is passed in the continue request is same as the one that came to consent form after redirection from auth0 service.

Why am I getting 401, any clues? Any help please?

Thanks in advance!