Auth0 handles authentication (login/signup), but your app still needs a database to store app-specific user data. Here’s why:
Store app-specific data:
Example:
If a user orders a pizza, Auth0 doesn’t care about their toppings choice. Your app needs to save that!
Imagine your app has a profile page where users:
Problem: Auth0 doesn’t store this data.
Solution: Save it in your database linked to the user’s Auth0 ID.
What if Auth0 becomes too expensive, or you want to switch to Firebase?
Problem: All user data is stuck in Auth0’s database.
Solution: Your app’s database has the user’s Auth0 ID and their app data. You can migrate to a new auth provider without losing data.