How to Create a User Login & Signup API with Firebase and Postman

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to my channel in this video I will teach you a way to make your entire user up and login API without coding even a single line well we will be using Firebase authentication and Postman to achieve this it's going to be simple and straightforward but yes if you want to learn how to code your own sign up and login API I am putting up a link on the top uh that has the entire video so without wasting any more time let's proceed with setting up our Firebase project so go to your uh Google Chrome browser and in this uh type this console firebase.com and this will bring to you this particular screen and go ahead and create a project you can name the project whatever you want uh in my case I will be naming is at as Pro date F okay and uh while you doing it for the first time there might be some uh check boxes that you need to check in terms and condition you need to apply for and click on continue uh definitely go ahead and set up these things we don't need to change this uh continue and you can use this default or you can create your new one as well and we'll go ahead and create this project this will take a couple of seconds to create this project and yeah we'll wait for that time so once you have created your project you will see something like this off a screen so just click on this web or you can do is go to your project settings on the top uh and click on this particular icon that is your web icon for this video and purposes what we will do is we will name it as test my test application my test web app okay uh now we don't need to set up the Firebase hosting uh so you will click on register so it will take some seconds to register your application into their Firebase account and portal yeah so now you can see that once registering that you will be seeing over here a lot of keys uh being displayed to you so mind you and save all these things on your end uh in a secure file because these keys are essential for the next part of it so copy your API key from here and open up your Postman I hope you have downloaded and set up your Postman as well and go to your environments tab so here I have created a new environment that is my Dev environment and over here I have added the variable as API uncore key I have kept it as secret and I have copy pasted my key over here so you need to follow this process now what you need to do is go to build and over here you can see authentication we'll go ahead for the authentication and yes get started click on get started it will give a second and choose from here we will choose for email and password for this video and yes email and password enable we will click on save so now that we have enabled the email and password uh authentication process on our project uh we will go ahead and test whether this thing is working or not uh so in the postman collection uh I have created a few apis that is sign up and login uh this is the URL directly provided by Firebase itself uh if you want me to attach this link to the description just tell in the comment section and I will send you a link personally of this entire Postman collection and let's see so in the pre in some of the previous steps we did is what we entered the API key in the variable over here right and what we will do is we'll pass the same API key with this syntax like two curly braces in front and back and now what we will do is we have created an email that is user email.com and a password now this is this sign up API Okay so we will click Send on it now you can see that it's a 200 response and we have signed up successfully let's check the same in the Firebase as well so now you can see all the list of users that have been signed up onto your platform so here you can see user has been added user email.com now we will check once and click on the signup API again well of course it CHS an error that is the email exist 400 error right so this is a really perfect version of the signup that we want right now and we'll go ahead and check the login also and what we will do is we'll put the same uh username uh user email.com and password as the password and this is sign in with password method of it now we'll click on send and yes so this has uh signed up as sorry this has logged in as well and we have gotten the response and we have gotten the ID token so this ID token is really crucial for the next steps or the next videos as this will be this is equivalent to the jwd Token as well that you have learned and this will be passed through in the header in all the apis as a security aspect and this is very secure and will help the application be more secure as well so let's check out one thing uh let's change the password also a bit and check this API so yes it definitely shows that these this is the invalid login credentials so now that we have created the entire user authentication system The Next Step will be to make a create user API which collects all the data from the user and saves it to the DB so don't forget to subscribe to the channel to stay updated for the upcoming videos and I hope you guys enjoyed the video and do give it a thumbs up and feel free to comment if you are stuck anywhere see you in the next video and happy coding
Info
Channel: Sidharth Sahoo
Views: 371
Rating: undefined out of 5
Keywords: Firebase Authentication, Postman Tutorial, No-Code API, User Signup API, User Login API, Firebase Tutorial, API without coding, Backend Tutorial, Firebase Postman, No-Code Development
Id: ABR1vSYzcTU
Channel Id: undefined
Length: 6min 8sec (368 seconds)
Published: Sun Nov 05 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.