If you've used Firebase with Clean architecture + MVVM, how do you handle implementing social authentication like Google Signin? 🤔
11/25/2020, 5:39 PM
What are your concerns exactly?
11/25/2020, 7:52 PM
do you plan to support more auth options or just Google SignIn?
there is nothing special here, if you have multiple authentication options you can try to abstract them in common pattern or just implement Google SignIn like you would normally
clean architecture doesn't force you to abstract everything and don't use frameworks at all, you simply have to use them. abstractions for the sake of abstractions are not clean in any way. clean architecture is about easy change and reusability, that's it
11/26/2020, 6:11 AM
I think you just need to separate auth module and define abstraction layer to use, and If you are using Dagger then you can maintain scope also, in case if you have any action related to auth medium
11/27/2020, 6:46 AM
Thanks guys, my concern was that most of the Auth logic involves doing it directly in the Activity.
But like y'all rightly said, everything doesn't need to be abstracted.