I am building a React app, with a Mongo DB db, and an express-based API. After a user registers, I would like to create a new User record in my database and add some default values, such that I can display an appropriate homepage for a signed in user. I have reviewed the Auth0 docs and am not able to locate a clear solution for this.
If I were handling the signup myself via my own API, this would be trivial, as I would just create the record as part of the signup call. However, now it is not at all clear how I can hook into an Auth0 registration event.
One option seems to be to use Hooks, but it’s not clear how I would interface with my API from an Auth0 hook.
Any tips or suggestions would be appreciated!