If you've used Firebase with Clean architecture + ...
# android-architecture
n
If you've used Firebase with Clean architecture + MVVM, how do you handle implementing social authentication like Google Signin? 🤔
g
What are your concerns exactly?
m
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
i
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
n
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.
118 Views