How to extend auth controller

System Information
  • Strapi Version: 4
  • Operating System:
  • Database: pg
  • Node Version: 16
  • NPM Version: 9
  • Yarn Version:

So I have added a couple of fields to the User table: firstname, lastname, etc and I would like to populate during registration.

I would like general advice on the best way to achieve this as I am finding the documentaton so very vague in some places. Even some simple things like where do I find the auth controller is a mystery to me. I only appear to have controllers for my own types…

Anyone done this previously? What approach have you taken?

There is nothing in the Users & Permissions plugin section of docs. Also nothing in the development section under controllers or plugin extension.