I’m new to the whole concept of an IDAAS. I hope someone can help me understand how Auth0 works in conjunction with a database.
I know that Auth0 doesn’t recommend storing non-profile user data on its service. Does that mean that in my database, there should be an
id field that’s the auth0 user id? Would I need to write another script to sync the creation / deletion of auth0 users with their respective data in my database?
Or is there a simpler better alternative to the above solution?
Update: I found this discussion from someone with a similar question. If I’m understanding it correctly, for the purposes of a Twitter-like application, you can’t go wrong with:
- Storing only user authentication data with Auth0
- Storing all other user data in your database
- Joining your user data with Auth0 through the
ids provided upon login
With this approach, most of your data will be in sync. The only case you’d have to take care of is the creation or deletion of users in Auth0, which can trigger a corresponding create/delete of user data on your database.