Тёмный
No video :(

Firebase Auth Tutorial #15- Firestore Users Collection 

Net Ninja
Подписаться 1,5 млн
Просмотров 288 тыс.
50% 1

Hey gang, in this Firebase auth tutorial I'll show you how to create a Users collection in our Firestore database and store additionaluser information in it.
VUE & FIREBASE FULL COURSE - www.udemy.com/build-web-apps-...
----------------------------------------
🐱‍💻 🐱‍💻 Course Links:
+ Course files - github.com/iamshaunjp/firebas...
+ VS Code editor - code.visualstudio.com/
+ Firestore Playlist - • Firebase Firestore Tut...
+ Materialize Playlist - • Materialize Tutorial #...
🤑🤑 Donate
+ www.paypal.me/thenetninja
🎓🎓 Find me on Udemy
+ www.udemy.com/user/47fd83f6-5...

Опубликовано:

 

16 янв 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 140   
@Mshagy02
@Mshagy02 4 года назад
bro, i'm about to cry bro. i've been looking for this the whole day finally found this video. soo happy bro. thank you bro
@bryanfisher6490
@bryanfisher6490 4 года назад
I'm doing his course on udemy: Build Web Apps with Vue JS 2 & Firebase finished the one app: searched on google: "create user databases with firestore" the first hit bring me to this! So amazing!! I share your happiness!! @SUPERIOR SHAGARI
@vincentgauthier2298
@vincentgauthier2298 3 года назад
bro ? broauborbro bro? Bro. Bro bro bro.
@node3079
@node3079 3 года назад
@@vincentgauthier2298 😂
@lutfiikbalmajid3128
@lutfiikbalmajid3128 3 года назад
in indonesia there is Borobudur temple bro
@aceheatmadhi397
@aceheatmadhi397 2 года назад
Can I get his udemy link
@SimPwear84
@SimPwear84 4 года назад
This playlist has opened so many posibilities in my career path. I cannot be thankful enough. This channel is a gift to mankind.
@frankkevy
@frankkevy 2 года назад
Shaun, every time I get stuck, somehow, you always have one video that explains everything. Thanks for your great job
@Reaper_f30
@Reaper_f30 4 года назад
Exactly what I was looking for, no one else on the net has done this but you, thanks man
@sefra6
@sefra6 4 года назад
Amazingly clear and well explained... thank you indeed for such a great way of teaching!
@aldrinandrade4366
@aldrinandrade4366 4 года назад
Wow this tutorial helps me a lot. Im so happy that i found your channel. Definitely recommended for those who wants to learn firebase.
@aliasgar.burhani1099
@aliasgar.burhani1099 3 года назад
I can watch your videos and learn continuously and enjoy for hours just like I enjoy Netflix, Man you made learning fun and easy !
@AhmedHuzain
@AhmedHuzain 7 месяцев назад
You're genuinely my favorite teacher in this field. Thanks a lot for all your RU-vid playlists!
@NetNinja
@NetNinja 7 месяцев назад
That means a lot, thanks Ahmed! :)
@emmanuelokwuzi4487
@emmanuelokwuzi4487 3 года назад
This was so helpful and you were also articulate. Thanks keep doing what you doing 👌🏿
@ciandrapancho8716
@ciandrapancho8716 3 года назад
IM CRYING, THANK YOU! BEEN LOOKING FOR THIS FOR WEEKS!
@pure-reactjs
@pure-reactjs 3 года назад
Your explanation is very clear all over the course! Thanks
@raymondmichael4987
@raymondmichael4987 5 лет назад
One thing about the Ninja Wagon; makes things look soooo simple. I learned a lot since I found this channel. Big up bro, keep it up. Greetings from Tanzania 🇹🇿
@ridl27
@ridl27 5 лет назад
ye, me too. this channel is awesome!
@atishmhatre4895
@atishmhatre4895 5 лет назад
very nice tutorial shaun, Thank you so much!
@shafeeqbarram6360
@shafeeqbarram6360 5 лет назад
thank you so much. i searched a long time for this
@comcatcom8829
@comcatcom8829 Год назад
Thank you for clear explaination. I find learn firebase is more accessable for me with video rather than docs
@julianhecker944
@julianhecker944 2 года назад
been looking for this for daaaayz, thanks so much!
@superknife0512
@superknife0512 5 лет назад
a lot of thanks to you Shaun
@novargi6165
@novargi6165 3 года назад
Awsome!! You are a hero, Mr Ninja.
@kostyachernysh5030
@kostyachernysh5030 5 лет назад
Another great lesson! Thank you!
@yayarea5109
@yayarea5109 3 года назад
Hey guys ...I figured out a way ...so what i did when adding to a collection just set the collection to the currentUser.uid and just render from the same collection.... I logout and signed in with different users and got specific data i was looking for....so happy!!!!
@mrtek8095
@mrtek8095 3 года назад
you absolute legend, you are saving people hours
@emanuelccanchiapaza2496
@emanuelccanchiapaza2496 4 года назад
This guy is a Genius! Thank you !
@DevAngular
@DevAngular 4 года назад
After 3 weeks, you finally unlocked me !!! :D
@C0sm1c_Owl
@C0sm1c_Owl 4 года назад
Thank you! Helped a lot
@miktavi
@miktavi 4 года назад
Thanks, this was very helpful!
@franfonse
@franfonse 4 года назад
awesome, great job and thanks!
@minhanhnguyen9603
@minhanhnguyen9603 5 лет назад
really great lession, thanks
@goktugfevziozcelik4548
@goktugfevziozcelik4548 Год назад
Ninja you are MY HEROOOO
@akhadtop2067
@akhadtop2067 2 года назад
What I've been searching for
@NilayKooi
@NilayKooi 2 года назад
Dudee thank you soo much!
@rohitchavan2220
@rohitchavan2220 2 года назад
Thankyou this was a lot of help ❤❤
@simplyreactnative6567
@simplyreactnative6567 3 года назад
you are the best, just a simple .data() have been messing up my stupid life;now i'm sorted
@szymonrybczak
@szymonrybczak 3 года назад
this is very helpful, I'm programming an ios app and that helps me :D
@nahomtamirat
@nahomtamirat Год назад
What a life saver
@Rajburundkar
@Rajburundkar 4 года назад
my user data is not adding even though i did exactly as you and its not even showing any error. please help
@RicardoVargasfh
@RicardoVargasfh 5 лет назад
Hi, first of all thanks so much for this, is really helpful! I have a question, what if the auth is done successfully but the data in firestore fails for any reason? How could be the best way to do this atomically? Like, deleting the user in the catch? Or is there a better way to handle that? Thanks again!
@moaazbhnas886
@moaazbhnas886 4 года назад
Awesome!
@hasanharman2144
@hasanharman2144 5 лет назад
Hi ninja, I have just started your course on Udemy and I cannot solve one specific problem. I want to add more values after creating a user in its user ID.
@josegc3414
@josegc3414 4 года назад
Thank you so much :)
@minhanhnguyen9603
@minhanhnguyen9603 5 лет назад
thanks a lot mate
@pupamatt
@pupamatt 3 года назад
This video is really helpful. I get how adding data to the users collection works when creating a user, but I'm having trouble sending user data to a firestore collection when someone who is logged in interacts with an element in my UI. Specifically, I have a form with checkboxes. When the form is submitted with different checkboxes selected, I want that data sent to a collection along with the user email of the user who is filling out the form. However, when I try this, firebase.auth().currentUser.email is null. I don't understand why this is happening.
@ahtamim1259
@ahtamim1259 3 года назад
you are a magician
@MK-sp9qs
@MK-sp9qs 4 года назад
thank you very much.
@podpison3268
@podpison3268 3 года назад
Thank you
@toastrecon
@toastrecon Год назад
Dumb question: doesn't this present some kind of security risk? It's allowing the client side code to have access to create new profiles? Should this be some kind of cloud function that creates a user profile in Firestore when a new user logs in?
@talhashan6355
@talhashan6355 5 лет назад
Hey Ninaj I really like your Videos Its been a lot learning in short time,Can you please? Make a video how to edit account details?
@pjalmeida8732
@pjalmeida8732 4 года назад
Hi Net Ninja, how do you differentiate between a client/customer and the company or tech (who will have more capabilities)?
@nicolaipedersen9657
@nicolaipedersen9657 5 лет назад
What an absolute stellar tutorial. You really make things so simple and saving my file. How would you restrict people from signing up? Imagine people would have to pay for various services - do you have a tutorial on that?
@andersbraathen1256
@andersbraathen1256 Год назад
Thank you wise one!
@NetNinja
@NetNinja Год назад
Hope it was helpful Anders!
@user-cv3er1qj8y
@user-cv3er1qj8y 3 года назад
Thank you so much~~~~
@hottajamaica
@hottajamaica 2 года назад
This class is great, however i have run into a problem. I would like to have users get the create user option only after submitting a payment and never again after doing so.
@redsharingman
@redsharingman 3 года назад
Thank you senpai for that tutorial! But i still can't understand how do we bind title and content data with a logged in user.
@DavidFdez556
@DavidFdez556 3 года назад
Hi! Thanks for this video! Do you know how could we avoid different users using the same email&password?
@igorrudkovskiy8336
@igorrudkovskiy8336 4 года назад
returning vs nesting .then. Is it just a personal preference, or there is something more to it, like performance?
@kamilstukus4144
@kamilstukus4144 3 года назад
Ty for a great course, but I have a one question. When I deleted the user in firebase auth then his representation in users collection is still avaiable. Is any way to delete automatically users with this collection?
@mrphilbert1
@mrphilbert1 3 года назад
Would it be better to reference the user email instead in order to tie it in with different sign in methods, eg sign in with google, facebook etc.?
@user-dd2sd3gs7z
@user-dd2sd3gs7z 4 года назад
hi , thanks for this awesome tutorial , what if i want to import users from csv file or json, is there any tutorial ?
@thegodfather7994
@thegodfather7994 2 года назад
Can you do an updated tutorial for this with firebase v9
@limchunyong6048
@limchunyong6048 4 года назад
Hi, thanks for the video. At 2:32, you mention firebase auth can store a photo URL and display name. How can I add that into firebase auth? I tried googling and there does not seem to be any support for that.
@DakotaDarkEvilG
@DakotaDarkEvilG 3 года назад
Bro, my brain hurts trying to understand this but I got it thx
@MariusDuna
@MariusDuna 4 года назад
Can someone tell me what is the replacement of Drive App Data for each user and sync between user's devices?
@jordan5253
@jordan5253 5 лет назад
But say you are using facebook or google authentication ? Is there a way to log the facebook UID into collections as well so you can then do the same matching process you are showing?
@Xspeedzone
@Xspeedzone 4 года назад
But will this work if the user writes multiple bios? I would imagine that you run into some trouble if you have multiple bios all using uid as their id.
@wakey4286
@wakey4286 Год назад
Innerhtml might not be the best method to use for the account details due to possible vulnerabilities, right? I think textcontent is better to use
@karimelsafadi7331
@karimelsafadi7331 4 года назад
Would it also be possible to store the additional information in a SQL database?
@ameyajoshi5673
@ameyajoshi5673 Год назад
Hey mate could you be able to show how to do this in Kotlin Android? Thanks very much.
@KindlyTech
@KindlyTech 2 года назад
Hey, i just want to know how to grab the logged in user UID when he invokes an on-call function and attach it to the firebase cloud functions and create a collection? This is a help to my Final year Assignment ! please do reply :(
@deepdivedevs100
@deepdivedevs100 4 года назад
Sir m Can we get the user in same manner?, db.collection('some_collection').doc(auth_user_uid).get() if not? please answer any other way, your help is much appreciated, thank you ... EDIT: WOW This works ,
@soychalupa2660
@soychalupa2660 3 года назад
Thanks man 👍👍 i'll buy your udemy course
@NetNinja
@NetNinja 3 года назад
Thanks so much, I hope you enjoy!
@muthaphuliavhakholwi9743
@muthaphuliavhakholwi9743 2 года назад
how do i create superusers, adminusers and ordinaryusers and make superuser to be about to create adminusers and ordinaryusers? please help
@jmmacatangay_grizzlybear
@jmmacatangay_grizzlybear 4 года назад
I have a question. so I have three users. Admin, Driver, and the Operator in the Admin I only need it's name, profile picture, email and password while the Driver has a name, profile picture, License plate, email and password. lastly the Operator has a name, profile picture, vehicles & license plate (he can add how many he has). email and password How do I make a Firestore database in this? Should I have One Collection named Members and underneath it is that I have two document one for Driver that has a map of id and under it is the name,profile picture, password, & email. and a document Operator that has a map in it and under it is the name profile picture email and password. I wanted to create each profile am I doing this right?
@noonewhomatters8941
@noonewhomatters8941 2 года назад
THE TRIFORCE!!
@fonncatalina6464
@fonncatalina6464 3 года назад
Hi everyone,I got a question, it is possible to get data from local storage if user is not true? And if it is true then I fetch data from firebase? I just get stucked to a to-do app please help...
@pricesmith1793
@pricesmith1793 3 года назад
what about implementing all of this server side?
@tabmax22
@tabmax22 Год назад
what if we're using sign in with Google or Facebook
@MrPeepa
@MrPeepa Год назад
Can you refer me how i can do this for signInWithPopUp instead of createUserWithEmailAndPassword?
@example7091
@example7091 3 года назад
I have a question, if you delete the user how can you delete also the document from the users collection?, im new to firebase but i have this idea: when click the delete account you can call a function to delete the specific document from users collection using the user id, is this possible?
@leonardotallone3004
@leonardotallone3004 Год назад
Im trying to do something like this. But not exactly the same. I have users created before with some existing data, like a member club (name, lastname, id, adress, phone, etc). Then, I want to match a sign up with that object (exist user). So I need some kind of data to match., for example the uid. Looks like simple, but its not for me, because its not the same like auth with email and password at the same time. I have a db seeded before with all club members. hope I was clear enought. Thanks a lot. Leo from Argentina.
@Jordan-er9bx
@Jordan-er9bx 3 года назад
Can I use a DB other than Firestore? Cause I own a server with a MySQL DB and I need to use that
@szyszak9424
@szyszak9424 Год назад
is there an answer in this video how to get all registered users in firebase firestore?
@nelsonurquilla8979
@nelsonurquilla8979 2 года назад
could you assign roles to users through firestore?
@javierlizarazu1297
@javierlizarazu1297 3 года назад
hi guys, how can i get the id of a document in guides so i can join it with another collection?
@global_ant
@global_ant 2 года назад
Hey @TheNetNinja how can I do the same thing on python?
@tarekarar1736
@tarekarar1736 4 года назад
U are a ninja :)
@informationguide8742
@informationguide8742 3 года назад
Sir, user can only login in one device and when he logged in another device he will automatically log out from first device.. please make authentication with Firebase .. please sir.. not found any single video on RU-vid about This.. please sir make this.. please please..
@deejayerick
@deejayerick 5 лет назад
What you think about flutter? Are you thinking to make a tutorial of flutter in the future?
@raymondmichael4987
@raymondmichael4987 5 лет назад
Ninja style, he'll start with a series on dart first (language used in flutter).then(he'll be able to teach flutter). I wish he can do that, but now he's "busy with php tutorial". Greetings from Tanzania 🇹🇿
@MrRicharddaniel
@MrRicharddaniel 5 лет назад
@@raymondmichael4987 how do you know he is making php tutorial?
@deejayerick
@deejayerick 5 лет назад
@@raymondmichael4987 ye how do you know that?
@raymondmichael4987
@raymondmichael4987 5 лет назад
Erickson Suero, by magic 🤣🤣 kidding. His status on github states that bro. Greetings from Tanzania 🇹🇿
@MrRicharddaniel
@MrRicharddaniel 5 лет назад
@@raymondmichael4987 lol you are informed about his action.
@ankitakapoor3943
@ankitakapoor3943 4 года назад
*index.js:13 Uncaught (in promise) TypeError: Cannot read property 'bio' of undefined* sir can you please help to resolve this error
@tanzimibthesam5861
@tanzimibthesam5861 3 года назад
Facing same error could you solve it
@alaeddinechahi7042
@alaeddinechahi7042 3 года назад
The Net Ninja President ! I said President !
@ramansaini1369
@ramansaini1369 3 года назад
Bro how i accept withdrawal or send withdrawal for users on fire base please reply me please bro help me
@ahmedabdalaziz5090
@ahmedabdalaziz5090 Год назад
I really need help I need to develop an admin app where you can create username and password for users and then send it to them. When you create a username and password, they will be stored in Firebase. So when the user tries to login to the application, the user application will check if the username is already stored in the database, and the user will be able to login to the user application. This username and password cannot be used on another device. If there is educational content, - java then guide me to it and if it does not help me Thank you The Net Ninja.
@bluehugh2
@bluehugh2 4 года назад
The authentication API also allows you to "updateProfile" to set "displayName" and/or "photoURL". Is there any reason to keep data like that synchronized between firestore and authentication APIs?
@lucidmorto
@lucidmorto 4 года назад
I think its limited to displayName, photoURL etc. If you want to create new fields maybe you should do this
@lucidmorto
@lucidmorto 4 года назад
Reference: stackoverflow.com/a/47845486/10991790
@kinstar
@kinstar 2 года назад
ahh its net ninja :D
@jinx12373
@jinx12373 2 года назад
Thank Allah for async await syntax
@ilustrado7291
@ilustrado7291 4 года назад
Nobody: Senpai: "ALRIGTHY GANG"
@therichardchannel
@therichardchannel 4 года назад
anyone know why when we create the bio doc, we use the set() method, but for something like the collection docs, we use the add() method and don't have to return it?
@lucidmorto
@lucidmorto 4 года назад
I think he used it because he want to create an id himself
@fmmustafa
@fmmustafa 3 года назад
Heyyy man .. what if I want to create users collection while I logged in then that user will be created inside user's collection .. but what if that user login again but how to prevent same email user not to be created in users collection 😶😶🙁🙁💔
@tanzimibthesam5861
@tanzimibthesam5861 3 года назад
Could you see the bio
@Trellyy809
@Trellyy809 3 года назад
isn't a firebase function too much? why wouldnt you just save the data to the users collectons after the user signs up?
@arihanthirawat6574
@arihanthirawat6574 4 года назад
i am not able to create database user , it will just return some information in console instead of creating a new db users in firestore.
@arihanthirawat6574
@arihanthirawat6574 4 года назад
okay its working now.
@baileyritchie5711
@baileyritchie5711 4 года назад
What if there is an error, and the user doesn't put in an actual email
@diddie06
@diddie06 4 года назад
you should check that the email is in the correct format(xxx@yy.co) upon registration with input validation. If it's fake email than that's another issue
@nicorobin7666
@nicorobin7666 4 года назад
can we do this in flutter for mobile app?
@NetNinja
@NetNinja 4 года назад
Yeah you can use firebase auth / firestore in Flutter too. I'm actually planning a Flutter & Firebase app tutorial now :)
@williamhumphries2900
@williamhumphries2900 4 года назад
Flutter Future createUserWithEmailAndPassword(String email, String password, String nickname) async { print("Trying to register user: $email"); Future aUser = await _firebaseAuth .createUserWithEmailAndPassword(email: email, password: password).then((cred) => Firestore.instance .collection("") .document(cred.user.uid) .setData({ "": cred.user.uid, "": nickname, "" : email, }) ); FirebaseUser user = await aUser.then((value) => value.user); return user?.uid;
Далее
Firebase Auth Tutorial #16 - More on Firestore Rules
4:19
Firebase - Back to the Basics
25:23
Просмотров 586 тыс.
Firestore Data Modeling - Five Cool Techniques
11:44
Просмотров 254 тыс.
Model Relational Data in Firestore NoSQL
9:13
Просмотров 373 тыс.
Security Rules! 🔑 | Get to know Cloud Firestore #6
22:39
Firestore Security Rules - How to Hack a Firebase App
10:05
Firebase Auth Tutorial #5 - Creating New Users
12:50
Просмотров 139 тыс.
100 Firebase Tips, Tricks, and Screw-ups
24:31
Просмотров 186 тыс.