Hey everyone! I've built a web app and I'm looking to implement a user system with three different user roles. I want users to log in using their email addresses. I've explored options like Auth0 and Clerk, but they feel a bit too complex for what I need. Are there any simpler solutions to let users sign up and have their accounts assigned to specific roles? Thanks in advance!
3 Answers
I switched to Google's free Firebase solution, and it's been a game changer. Trust me, once your user base starts growing, having an solid email authentication system becomes really important! It's definitely worth checking out.
Honestly, to give you the best advice, it would help to know more about your current setup. What's your stack like? Where do you store your data? Generally, think of users as entries in a 'users' table within your database. You'll just look them up, validate them, authenticate them, and you're good to go. Without knowing more, though, it's tricky—everyone's just going to chime in with their favorite tools!
When you mention assigning roles, do you have a table for roles in your database? For instance, are you thinking of storing something like `role.user_id` to link a user to their role?

Yes! I have three roles: basic, pro, and enterprise, and they're set up in my JavaScript files checked against the user ID on login. The basic role is free, while pro and enterprise come with enhanced features. I want to create user accounts without holding their info in the web app. I've even thought about using webhooks to connect to a Postgres database on AWS.