We are trying out the Authorization Flow(OAuth2) of auth0. Since all signup/login are handled by auth0. We observed that auth0 creates a new User whenever it does not match a user based on email which we use for passwordless for example.
My question is, in this flow, when do we create a record in our database linking the auth0 User Id to the data for the user in our app’s database? Let’s say for example, first time calling our API after authorization, the user requests for his profile and the profile data should already exist.
Any ideas?