BetterAuth for separate 'platform admins' and 'users' tables

Sorry - originally posted this in the #development - think here is more appropriate Btw I just did tons of digging - and couldn't find a definitive answer. I need to implement betterAuth for admins and users in separate tables - it's a strict constraint for this project. The 'Clarm'(?) discord AI bot thing said it was possible with 2 config.ts but I could only find references to that being used in the CLI. Is this possible? Reasons I require this setup: - strict separation of concerns (platform admins/support/staff are not the same as users with 'admin' role) - different auth requirements for each - soc compliance / auditability etc.. Also despite my digging, every AI I asked also said it wasn't possible - so would rather hear it from the horses mouth They're all encapsulated in the same API & database, for extra context Also - who's idea was it to use 'user' as a hardcoded table name? Especially non-pluralised? Every company I've ever worked with from small to huge and I have never seen a table without a pluralised name... Was there a purpose? If needs be I can help implement these features in my spare time... it's a must Right now I'm just going to implement better-auth for customer side, and use my trusty homebrew auth, which has never let me down, for the admin stuff - if one day I could unify it that would be a massive improvement Although rn, I already use Cloudflare ZeroTrust, so may just continue using their Idps which as a benefit also comes with network layer security ie. WIREGUARD/MASQUE - not connected? Can't access internal sites. Lmk if it's currently possible - if not - let me know where to start to get implementing Just been reading some through threads here, as far as I can tell it's kinda possible, if I were to simply use 2 instances of betterAuth Not too sure though. Busy enough as it is, as we all are
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?