Hi Auth0 Team,
I am very new to Auth0 and I’m having trouble when and how to store information in my own db for the sake of data association.
One approach I thought of is, whenever User sends a request in my backend using a access token, I would use a middleware to check if the user exists in the db. If it does not, I will create a new one. There are several disadvantage with this approach:
- I do not get know the user email or name, because Access tokens doesn’t provide me that
- I have to query database to check for the user each time the user requests something
Is there any better approach? What if I want to store user name and email in my DB?