Overriding the auth controller with Strapi v4

Two options I can think of are:

  1. Forking the users-permissions plugin and making your desired changes in your clone.
  2. In your extension code, add a middleware to the relevant route and capture the error you want to modify.