Help with migration from Next-Auth + Firestore + Firebase Auth
Hey everyone,
We’re currently at 2k plus users and our auth setup has turned into a bit of a Frankenstein.
Current stack:
NextAuth
Firestore as the main user store
Firebase Auth synced alongside NextAuth because we need it for Cloud Storage
Email and password implemented via Firebase Auth, then synced back into NextAuth
As we’re planning to introduce organizations and more complex permission models, this setup is starting to feel fragile and hard to reason about.
We’re considering moving away from this architecture to BettterAuth and have two options in mind:
-) Switch to the Firestore Firebase Community Adapter with BetterAuth
-) Introduce a new PostgreSQL database, create a migration path on user login, and gradually move users over while keeping the current system running.
Has anyone dealt with a similar migration at this stage?
Which approach would you recommend, and what pitfalls should we watch out for?
Thanks in advance for any insights.
We’re currently at 2k plus users and our auth setup has turned into a bit of a Frankenstein.
Current stack:
NextAuth
Firestore as the main user store
Firebase Auth synced alongside NextAuth because we need it for Cloud Storage
Email and password implemented via Firebase Auth, then synced back into NextAuth
As we’re planning to introduce organizations and more complex permission models, this setup is starting to feel fragile and hard to reason about.
We’re considering moving away from this architecture to BettterAuth and have two options in mind:
-) Switch to the Firestore Firebase Community Adapter with BetterAuth
-) Introduce a new PostgreSQL database, create a migration path on user login, and gradually move users over while keeping the current system running.
Has anyone dealt with a similar migration at this stage?
Which approach would you recommend, and what pitfalls should we watch out for?
Thanks in advance for any insights.