wasp-lang / open-saas

A free, open-source SaaS app starter for React & Node.js with superpowers. Full-featured. Community-driven.
https://opensaas.sh
MIT License
8.32k stars 805 forks source link

Firebase Auth in open-saas #326

Open lukyanov opened 5 days ago

lukyanov commented 5 days ago

Hi!

I'm considering the possibility of using Firebase Auth instead of the native wasp authentication and I'm looking for advice.

What would be the best strategy in my case? Does it even make sense? If it's feasible, should I add a new auth provider for wasp? Or just replace wasp auth in the open-saas template?

How would you do this if you needed the same?

I'd appreciate any input. Thank you.

vincanger commented 5 days ago

I would suggest using the Wasp Auth, as it's a built-in full-stack solution with managed, but customizable, UI components.

It just works. If you haven't given it a try yet, I suggest you do before ultimately making your decision.

If you still prefer to use Firebase Auth then you won't configure auth in the main.wasp file and will be responsible for creating all your own auth components and dealing with authenticated users on your servers.

lukyanov commented 5 days ago

Thank you! The thing is I already have users in Firebase and I have no plans to migrate them. So I wanted to build a companion web app that they could use as well.

vincanger commented 4 days ago

Would migrating the users be hard? I assume you could write a script for that. If you decide to go that route, let us know. I'm sure @infomiho (the dev responsible for Wasp Auth) could offer some tips here.