I'm trying to create a multi-level role system for my website (which is a type of blog).
I've already implemented classic Firebase Auth authentication system, with email/password combo only. By now, every user can post/edit articles because I do't have any granularity. I'd like to change that and make a separation between several roles - starting by Admins/Moderators/Users, but roles don't seem to be available as the default Firebase User model.
How can I possibly migrate my logic to this, and which tool should I use withotu having to redo everything? I've seen people using Firestore (but this was a long time ago, Firebase must've changed since then), and some others tend to prefer the Firebase Auth SDK. By now, new things are even available with this Identity Platform thing, which I don't really understand yet.
Note that I'm using:
- NextJS 13 (Javascript only) with integrated Next API (SSR)
- Deployment on Vercel
- Database split between some Firebase Storage assets (mostly images) and MongoDB (everything else)