Firebase Auth Tutorial #15- Firestore Users Collection

  Рет қаралды 286,072

Net Ninja

Net Ninja

5 жыл бұрын

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...

Пікірлер: 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.
@AhmedHuzain
@AhmedHuzain 6 ай бұрын
You're genuinely my favorite teacher in this field. Thanks a lot for all your KZbin playlists!
@NetNinja
@NetNinja 6 ай бұрын
That means a lot, thanks Ahmed! :)
@emmanuelokwuzi4487
@emmanuelokwuzi4487 3 жыл бұрын
This was so helpful and you were also articulate. Thanks keep doing what you doing 👌🏿
@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 !
@pure-reactjs
@pure-reactjs 3 жыл бұрын
Your explanation is very clear all over the course! Thanks
@ciandrapancho8716
@ciandrapancho8716 3 жыл бұрын
IM CRYING, THANK YOU! BEEN LOOKING FOR THIS FOR WEEKS!
@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
@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!
@julianhecker944
@julianhecker944 2 жыл бұрын
been looking for this for daaaayz, thanks so much!
@comcatcom8829
@comcatcom8829 Жыл бұрын
Thank you for clear explaination. I find learn firebase is more accessable for me with video rather than docs
@mrtek8095
@mrtek8095 3 жыл бұрын
you absolute legend, you are saving people hours
@novargi6165
@novargi6165 3 жыл бұрын
Awsome!! You are a hero, Mr Ninja.
@emanuelccanchiapaza2496
@emanuelccanchiapaza2496 3 жыл бұрын
This guy is a Genius! Thank you !
@superknife0512
@superknife0512 5 жыл бұрын
a lot of thanks to you Shaun
@kostyachernysh5030
@kostyachernysh5030 5 жыл бұрын
Another great lesson! Thank you!
@akhadtop2067
@akhadtop2067 2 жыл бұрын
What I've been searching for
@DevAngular
@DevAngular 4 жыл бұрын
After 3 weeks, you finally unlocked me !!! :D
@goktugfevziozcelik4548
@goktugfevziozcelik4548 Жыл бұрын
Ninja you are MY HEROOOO
@miktavi
@miktavi 4 жыл бұрын
Thanks, this was very helpful!
@RicardoVargasfh
@RicardoVargasfh 4 жыл бұрын
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!
@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.
@rohitchavan2220
@rohitchavan2220 2 жыл бұрын
Thankyou this was a lot of help ❤❤
@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!!!!
@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.
@C0sm1c_Owl
@C0sm1c_Owl 4 жыл бұрын
Thank you! Helped a lot
@szymonrybczak
@szymonrybczak 3 жыл бұрын
this is very helpful, I'm programming an ios app and that helps me :D
@simplyreactnative6567
@simplyreactnative6567 3 жыл бұрын
you are the best, just a simple .data() have been messing up my stupid life;now i'm sorted
@NilayKooi
@NilayKooi 2 жыл бұрын
Dudee thank you soo much!
@franfonse
@franfonse 4 жыл бұрын
awesome, great job and thanks!
@minhanhnguyen9603
@minhanhnguyen9603 5 жыл бұрын
really great lession, thanks
@pjalmeida8732
@pjalmeida8732 3 жыл бұрын
Hi Net Ninja, how do you differentiate between a client/customer and the company or tech (who will have more capabilities)?
@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?
@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
@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
@user-dd2sd3gs7z
@user-dd2sd3gs7z 3 жыл бұрын
hi , thanks for this awesome tutorial , what if i want to import users from csv file or json, is there any tutorial ?
@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.
@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.?
@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?
@MariusDuna
@MariusDuna 4 жыл бұрын
Can someone tell me what is the replacement of Drive App Data for each user and sync between user's devices?
@karimelsafadi7331
@karimelsafadi7331 4 жыл бұрын
Would it also be possible to store the additional information in a SQL database?
@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.
@nahomtamirat
@nahomtamirat Жыл бұрын
What a life saver
@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?
@ahtamim1259
@ahtamim1259 3 жыл бұрын
you are a magician
@Xspeedzone
@Xspeedzone 3 жыл бұрын
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.
@thegodfather7994
@thegodfather7994 2 жыл бұрын
Can you do an updated tutorial for this with firebase v9
@ameyajoshi5673
@ameyajoshi5673 Жыл бұрын
Hey mate could you be able to show how to do this in Kotlin Android? Thanks very much.
@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?
@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 :(
@andersbraathen1256
@andersbraathen1256 Жыл бұрын
Thank you wise one!
@NetNinja
@NetNinja Жыл бұрын
Hope it was helpful Anders!
@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?
@josegc3414
@josegc3414 4 жыл бұрын
Thank you so much :)
@nelsonurquilla8979
@nelsonurquilla8979 2 жыл бұрын
could you assign roles to users through firestore?
@minhanhnguyen9603
@minhanhnguyen9603 5 жыл бұрын
thanks a lot mate
@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?
@MK-sp9qs
@MK-sp9qs 4 жыл бұрын
thank you very much.
@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 ,
@podpison3268
@podpison3268 2 жыл бұрын
Thank you
@soychalupa2660
@soychalupa2660 3 жыл бұрын
Thanks man 👍👍 i'll buy your udemy course
@NetNinja
@NetNinja 3 жыл бұрын
Thanks so much, I hope you enjoy!
@pricesmith1793
@pricesmith1793 3 жыл бұрын
what about implementing all of this server side?
@DakotaDarkEvilG
@DakotaDarkEvilG 3 жыл бұрын
Bro, my brain hurts trying to understand this but I got it thx
@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
@muthaphuliavhakholwi9743
@muthaphuliavhakholwi9743 2 жыл бұрын
how do i create superusers, adminusers and ordinaryusers and make superuser to be about to create adminusers and ordinaryusers? please help
@tabmax22
@tabmax22 11 ай бұрын
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?
@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?
@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?
@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...
@javierlizarazu1297
@javierlizarazu1297 3 жыл бұрын
hi guys, how can i get the id of a document in guides so i can join it with another collection?
@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.
@moaazbhnas886
@moaazbhnas886 4 жыл бұрын
Awesome!
@global_ant
@global_ant 2 жыл бұрын
Hey @TheNetNinja how can I do the same thing on python?
@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
@szyszak9424
@szyszak9424 Жыл бұрын
is there an answer in this video how to get all registered users in firebase firestore?
@user-cv3er1qj8y
@user-cv3er1qj8y 3 жыл бұрын
Thank you so much~~~~
@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
@noonewhomatters8941
@noonewhomatters8941 2 жыл бұрын
THE TRIFORCE!!
@ilustrado7291
@ilustrado7291 4 жыл бұрын
Nobody: Senpai: "ALRIGTHY GANG"
@alaeddinechahi7042
@alaeddinechahi7042 3 жыл бұрын
The Net Ninja President ! I said President !
@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 KZbin about This.. please sir make this.. please please..
@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
@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.
@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.
@tarekarar1736
@tarekarar1736 4 жыл бұрын
U are a ninja :)
@jinx12373
@jinx12373 2 жыл бұрын
Thank Allah for async await syntax
@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
@kinstar
@kinstar 2 жыл бұрын
ahh its net ninja :D
@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
@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?
@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
Net Ninja
Рет қаралды 41 М.
Firebase - Back to the Basics
25:23
Fireship
Рет қаралды 582 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 95 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 64 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 26 МЛН
Firestore Data Modeling - Five Cool Techniques
11:44
Fireship
Рет қаралды 253 М.
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
Using Cloud Firestore For Your REACT Backend 2023 | CRUD App
51:15
Travis Media
Рет қаралды 19 М.
Model Relational Data in Firestore NoSQL
9:13
Fireship
Рет қаралды 369 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 95 МЛН