Auth0 Require Email Verification issues

Hi @mbh,

Welcome to the Auth0 Community!

I have just checked the Require Email Verification integration you shared and found, in the installation steps, it states that you should be able to configure the integration’s Error Message to set your preferred error_description.

However, when I tried to test this integration, I was not able to configure the integration’s error message.

Given that, I will let our Engineering teams know about this issue to have them look at this.

In the meantime, you could implement this Post-Login Action script as a workaround:

exports.onExecutePostLogin = async (event, api) => {
  if (!event.user.email_verified) {
    api.access.deny(`Please verify your email before continuing.`);
  }
};

Please let me know if you have any questions.

Thanks,
Rueben

1 Like