Firebase Authentication | Register, Login, Signout with Email & Password

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 86

  • @HassaanRaza
    @HassaanRaza  Рік тому +2

    Amazing new video, which shows the important firebase auth functions such as
    deleteUser, reauthenticateWithCredential, EmailAuthProvider, onAuthStateChanged
    watch now:
    ua-cam.com/video/3utuVBKm1xk/v-deo.html

  • @swagathaldar
    @swagathaldar 11 місяців тому +2

    10:00 is time stamp pr.....mera user credentials console pr nhi dikha rha and firebase pr bhi nhi dikha rha...pls help pr...aaj submissions h mere...

  • @bisforbiggie1632
    @bisforbiggie1632 Рік тому +4

    User gets detected by authentication but not by realtime database

  • @misterdanger4727
    @misterdanger4727 10 місяців тому +1

    well, i have to say that, at first it was just feeling like you can never teach me something, but I was totally WRONG, Thanks a bunch, liked and subscribed, keep it up buddy.

    • @HassaanRaza
      @HassaanRaza  10 місяців тому

      hehehe thanks for the praise :)

  • @ilavras
    @ilavras 10 місяців тому +1

    Congratulations on the playlist, I followed the 4 videos and the result was 100%.
    I suggest that you prefix the videos in the playlist (01, 02, 03, 04) to the correct sequence, as it got confusing. Thank you from Brazil.

    • @HassaanRaza
      @HassaanRaza  10 місяців тому +1

      hmm sure, thanks for the suggestion :)

  • @renkazuki8177
    @renkazuki8177 Рік тому +6

    Hello, I followed the code and everything, and I didn't also have any errors, somehow when I register a user it doesn't detect to firebase. How do I fix this?

    • @Slurpyyy
      @Slurpyyy 9 місяців тому

      have you found a fix yet?

    • @Arr4fi
      @Arr4fi 7 місяців тому

      @@Slurpyyy bro shes asking

    • @Slurpyyy
      @Slurpyyy 7 місяців тому

      @@Arr4fi brother she posted that comment 7 months ago, also found the fix

  • @tourushi9137
    @tourushi9137 7 місяців тому

    I swear, I'd be doomed if I hadn't found your UA-cam channel. Huge thanks for the awesome tutorials.

    • @HassaanRaza
      @HassaanRaza  7 місяців тому +1

      hehe you're welcome, thank you for appreciating :)

  • @ariel_joe
    @ariel_joe Рік тому +2

    Bro why i can't write data to the realtime database?

  • @lucanwolf6604
    @lucanwolf6604 Рік тому +1

    I followed everything in order, double checked a lot of times now. but when I click on Login it doesn't redirect me to home.html, how to fix?

    • @AbidMA
      @AbidMA Рік тому

      Did u do app route in python?

  • @syedafaiza614
    @syedafaiza614 Рік тому +2

    I have a issue can you plz guide me home.html is not showing when i clicked on login

  • @ahmethakanaltparmak5890
    @ahmethakanaltparmak5890 Рік тому +1

    I did everything as you did but same error every time: Firebase: Error (auth/network-request-failed).

  • @mylearningsources6332
    @mylearningsources6332 Рік тому +1

    It works like a charm. Thank you so much Hassaan!

  • @Keuxnh-t4l
    @Keuxnh-t4l 6 місяців тому +1

    Moving to Html which after login is not work..

    • @HassaanRaza
      @HassaanRaza  6 місяців тому

      we have import statement where we define all the functions, set, get whatever, you may have missed get over there

    • @Keuxnh-t4l
      @Keuxnh-t4l 5 місяців тому

      @@HassaanRaza bro Where my Comment gone to

  • @UnknownLearner-od3qn
    @UnknownLearner-od3qn 10 місяців тому +1

    we are writing this in index.js or in script of html on frontend what is someone get our apikey from configuration and misuse it

    • @HassaanRaza
      @HassaanRaza  10 місяців тому

      you are right, this is just a demonstration, otherwise you don't won't to use javascipt directly in your web app, instead we have backend server running asp.net or nodejs and sensitive files/configuration are safe on the server.

  • @STEMMadeSimple2023
    @STEMMadeSimple2023 Рік тому

    Great! How does the redirect part (at the end) work?

  • @lilshex
    @lilshex Рік тому +1

    the page keeps reloading when i try click sign in, cant seem to fix it

    • @HassaanRaza
      @HassaanRaza  Рік тому

      check

    • @lilshex
      @lilshex Рік тому

      When I check the type to button , the button stops responding and nothing happens, I've tried different firebase tutorials and I get the same problem , it either refreshes, or when I change it to type="button" it stops working & nothing happens

    • @HassaanRaza
      @HassaanRaza  Рік тому

      @lilshex its not about the tutorials man, check browser's console if any error fix that error if no error than put alert in function to check that the sign in button is working or not.

    • @lilshex
      @lilshex Рік тому

      I've done all that it just keeps refreshing, the console doesn't say anything no errors or issues. Even when I use alert()

  • @arisrobles4742
    @arisrobles4742 9 місяців тому

    It works! But when I sign in into another account, same activity to that previous account is being saved. Could someone provide a tutorial video?

  • @triplejay521
    @triplejay521 10 місяців тому +1

    Hi The Amazing Codeverse , thank you for the video! Can I request you do a tutorial on Firebase realtime database? Mainly after the login/register function , how do you save form data unique to that user that is currently logged in?

    • @HassaanRaza
      @HassaanRaza  10 місяців тому

      actually in the video we are saving firstname and lastname which is data unique to user in realtime database

    • @HassaanRaza
      @HassaanRaza  10 місяців тому

      and if you want to change the users data later, i have posted a video on update password and user information but its better the watch the videos in sequence for best understanding, so you may follow playlist 😊

    • @triplejay521
      @triplejay521 10 місяців тому

      @@HassaanRaza I see , ok thank you very much sir! Appreciate the reply

  • @guyc.9106
    @guyc.9106 Рік тому +1

    I have a big problem: it says Firebase: Error (auth/invalid-login-credentials). Someone please help me.

    • @HassaanRaza
      @HassaanRaza  Рік тому

      it simple means email, and password does not matches, the credentials stored on firebase auth.
      put console.log() before the auth function check what email and password values are you sending on furebase auth.

    • @guyc.9106
      @guyc.9106 Рік тому

      @@HassaanRaza I've tried checking. It's the same.

  • @animerenewed
    @animerenewed 9 місяців тому

    Sir how to keep the user logged in untill he log out.. can please help me😊

    • @HassaanRaza
      @HassaanRaza  9 місяців тому

      we have session storage which keeps information until the browser is closed, and we have localstroage which keeps information until it is manually removed, you have to make logic to save data in localstorage and then read loggin data from localstorage

    • @HassaanRaza
      @HassaanRaza  9 місяців тому

      i'll see if i can make a video on this in future.

  • @aften_Ved-w2r
    @aften_Ved-w2r Рік тому +3

    You are a life saver bro 🙌

  • @zmoonmaru8242
    @zmoonmaru8242 Рік тому +1

    it says "get not defined" in my login page

  • @mitsuha16
    @mitsuha16 Рік тому

    when i open it in default browser a blank page opens

  • @faizshah5902
    @faizshah5902 Рік тому

    Hi sir. Can you teach on how to update or add new data from the current logged in user ?

  • @nettyYTube
    @nettyYTube Рік тому

    an getting this error Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    any help

    • @HassaanRaza
      @HassaanRaza  Рік тому

      you're making mistake in getting the element from document,
      like writing the id wrong, etc.
      so element is not found, and you try to do null.addeventlistner thats why you are getting this error.

    • @nettyYTube
      @nettyYTube Рік тому

      ive fixed it
      @@HassaanRaza

  • @oskarpyc1632
    @oskarpyc1632 Рік тому

    I keep getting this error "Uncaught ReferenceError ReferenceError: createUserWithEmailAndPassword is not defined". Do you have any ideas? Thanks

    • @henriquecw22
      @henriquecw22 Рік тому +2

      Did you import this?

    • @HassaanRaza
      @HassaanRaza  Рік тому +1

      you must have forgotten to import it from firebase auth with the other auth functions or you might have used different spelling or case.

    • @oskarpyc1632
      @oskarpyc1632 Рік тому

      @@HassaanRaza Yes you were right. I accidentally had the Firebase script in two seperate scripts. My mistake. Now I have another problem :(.. Firebase: Error (auth/admin-restricted-operation).

    • @oskarpyc1632
      @oskarpyc1632 Рік тому

      @@HassaanRaza Hi any ideas on this? Still haven't managed to get a fix :(

  • @charlenem6040
    @charlenem6040 11 місяців тому

    this works, thank you so much!

  • @MuttaqinMashrafi
    @MuttaqinMashrafi 7 місяців тому

    Sir,
    Your tutorial is great. But I have a question in my mind. If someone inspects the website ,can easily copy and paste the Firebase configuration and can easily get access to it. So how can the problem be solved? Please help😢

    • @HassaanRaza
      @HassaanRaza  6 місяців тому

      yes this is true but firebase work on the basis of these credential, you can use any custom logic to make the credentials harder to find but still with some efforts anyone can see them.
      firebase config is suppose to be on client side because this is how firebase identifies which db to use its like its address you cannot restrict it.
      basically you implement security in firebase through firebase rules, you make your db readonly for anonymous users, you can restrict access to only autorized users, for general public you can set the rules to readonly.

    • @MuttaqinMashrafi
      @MuttaqinMashrafi 6 місяців тому

      @@HassaanRaza sir can you please make a tutorial on that. Like securing realtime db without using Firebase authentication , and also having some credentials practical uses in http referrer website single page and for also multi page.

  • @dienau6313
    @dienau6313 Рік тому +1

    can you add the option forgot passsword?

  • @grc__
    @grc__ 9 місяців тому +1

    ajudou dms

  • @alirazaramejo
    @alirazaramejo Рік тому

    who to make Rollbase login

  • @dhilian835
    @dhilian835 Рік тому

    Veer contact kithe kra tere nal?

  • @louisnevot
    @louisnevot Рік тому

    This video is amazing but I'm having issues with the UserCreds, could you please share the source code 🙏

  • @HarshitMalhotra_
    @HarshitMalhotra_ 10 місяців тому

    please provide the source code also i your description

  • @W.i.s.e.K.i.n.g
    @W.i.s.e.K.i.n.g 8 місяців тому

    Great lesson
    Source code please 🙏

  • @HassaanRaza
    @HassaanRaza  Рік тому

    watch same tutorial but with Cloud Firestore Database: ua-cam.com/video/lEPGHKEx9yU/v-deo.html

  • @TheAlibaadshah
    @TheAlibaadshah Рік тому

    and how to change password ?

    • @HassaanRaza
      @HassaanRaza  Рік тому +1

      you can wait for future videos, meanwhile you can checkout docs:
      firebase.google.com/docs/auth/web/manage-users

  • @harsh823q
    @harsh823q 8 місяців тому

    Thnkiu so much ❤

  • @dhilian835
    @dhilian835 Рік тому

    Koi mail id hi de chhad veer mere

  • @phuhoang415
    @phuhoang415 Рік тому

    U got me bro !

  • @aichaccp
    @aichaccp Рік тому

    ❤❤❤❤❤ thnks

  • @Sasraa
    @Sasraa Рік тому

    Thank you sooo much master!

  • @ab123-j7v
    @ab123-j7v 8 місяців тому

    amazing thanks

  • @bitbytecodes
    @bitbytecodes 6 місяців тому

    Thanks.

  • @mohammadkhalafIraqi
    @mohammadkhalafIraqi Рік тому

    Thank you

  • @ffpro3515
    @ffpro3515 Рік тому

    Nice Video Bro and thank you.