Hello! I am working on a car sale platform for independent sellers and professional dealerships. I have a problem regarding user management. I know that Auth0 basically does the Authentication + Authorization part for me, but I also need some user information for the user profile and listings. I configured Auth0 to use both social platforms IdPs, such as Google and Facebook, but I also intend to allow users to create their own accounts.
Now my question is: how do I proceed with the users that are connecting through IdPs such as Google? I need their data to be in my database as well, at least the email, but how do I save it just upon first connection ?
By having the user saved in your database, do you mean the Auth0 user database or saved inside your own personal one?
If you are talking about a personal database, you can use Auth0 Post User Registration Action in order to perform an query to your database and save all the necessary information of the newly signed up user by accessing their information from the event object (such as event.user.email )