Error "Invalid action" on Consent Screen when Using a Custom Page Template

Overview

The red error alert below appears at the top of the form on the consent screen when clicking on the Accept or Decline buttons.

Invalid action

Applies To

  • Consent screen
  • Consent prompt
  • Page Template

Cause

The error “Invalid action” refers to the Accept or Decline actions when clicking on the buttons in the consent screen.

When submitting the form on the consent screen by clicking the Accept or Decline buttons, an action parameter is added to the payload, and its value is that of Accept or Decline.

When this action parameter is empty or missing, the above error is thrown, and it is most frequently due to a customization in the Page Template.

Solution

Please review the custom Page Template code. It might be worth testing the exact same flow that’s failing with the tenant’s canonical domain (e.g., https://YOUR_TENANT_NAME.REGION.auth0.com) so that the custom Page Template is not used, to rule out an issue with the code.

Related References