Flutter Firebase & DDD Course [2] – Authentication Value Objects

Reso Coder
Reso Coder
57.2 هزار بار بازدید - 4 سال پیش - 📗 Written tutorial & full
📗 Written tutorial & full project 👇👇
https://resocoder.com/firebase-ddd-fl...

📧 Get Flutter news 📰 and resources:
👉 http://flutter.education

👨‍💻 Do you write good code? Find out now!
https://resocoder.com/good-code-quiz

We have the big picture of Domain-Driven Design already in our minds so now it's time to get coding. You might think that since we are building a Firebase app, we will need to worry about using the Firestore and FirebaseAuth classes right from the start. That's not true at all with DDD. Let's start in the most important layer of them all - the domain layer. Namely, we are going to tackle authentication.

How can we sign in using email and password?  The usual way would be to have a sign in form that would validate the inputted Strings. You know, email addresses must have the '@' sign and passwords must be at least six characters long. We would then pass these Strings to the authentication service, in our case, Firebase Auth. Sure, this is perfectly doable but we have to realize one important fact...

Go to my website for more information, code examples, and articles:
https://resocoder.com

Follow me on social media:
Instagram: resocoder
Facebook: resocoder
Twitter: resocoder

#Flutter #Firebase #DDD
4 سال پیش در تاریخ 1398/12/23 منتشر شده است.
57,230 بـار بازدید شده
... بیشتر