Vue 3 + Firebase Authentication in 10 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2022
  • ✅ FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS
    learnvue.co/vue-3-essentials-...
    follow me on twitter:
    / mattmaribojoc
    🚨 Like quick Vue lessons like these? Check out 800+ lessons over on Vue School - go.learnvue.co/vueschool
    INTRO
    Music by Lukrembo

ความคิดเห็น • 117

  • @brunosargi7012
    @brunosargi7012 2 ปีที่แล้ว +36

    I really just want to say "THANK YOU" for this amazing content. I used React for years and now decided to switch for Vue, and your channel is making my experience from "nice" to "omg I love Vue". So really thanks and please keep up with the amazing content!!

    • @miraztisha
      @miraztisha 2 ปีที่แล้ว

      Can you give me source code??

  • @pushandhabalia1501
    @pushandhabalia1501 ปีที่แล้ว

    you were super quick, super precise, covered all cases. Its hard to find guys like you. Keep up the pacy work, Simple awesome thanks man 🍻

  • @luistrcastro
    @luistrcastro 2 ปีที่แล้ว +5

    One of the best tutorials ever!! New, updated and straightforward

  • @luisangelguzman2335
    @luisangelguzman2335 2 ปีที่แล้ว +2

    Simple, concise, and streightforward. I have nothing to say but thank you. Keep up the amazing content!

  • @shaxzodalimov356
    @shaxzodalimov356 ปีที่แล้ว +2

    I haven't been able to find such quality content on this topic for a long time. It was very useful. Thank you

  • @RumbleLab
    @RumbleLab ปีที่แล้ว +2

    I don't normally like and subscribe to videos like this but you were an exception. Your style was really nice and concise. I could see me watching your videos not just when I am trying to do something, but when trying to learn a new concept. Fine job. Thank you

    • @LearnVue
      @LearnVue  ปีที่แล้ว +3

      thanks so much i really try to make videos that respect everyone's time, so i'm glad you like the style :)

  • @JimKrillPDX
    @JimKrillPDX ปีที่แล้ว +2

    I wrestled with how to handle the authGuard in vue-router for a while... finally ended up with something similar to what you have here, but not quite. This video helped out a lot to finalize what I've been working on. Thank you!

  • @ignjat4123
    @ignjat4123 ปีที่แล้ว +1

    This video explains everything so well in just 10 minutes. Thanks a lot for the video, man. You saved me a ton of time.

  • @danielwatson6529
    @danielwatson6529 2 ปีที่แล้ว +1

    Thanks bro, would love more firebase(9) stuff, love how u present it, the pace etc

  • @hyggedev2124
    @hyggedev2124 2 ปีที่แล้ว +1

    I was today years old, when I found out, I can understand a lot of what's happening in vue coming from React. When your learn web development framework's, there truly is so much overlap and similarities 💯 Great video. I think vue is next for me.

  • @nevenlukic
    @nevenlukic ปีที่แล้ว +3

    7:27 has saved me. Thank you! I've managed to setup everything myself but this part was the missing piece. Great video, short, informative and fun.

  • @patrickodonnell2010
    @patrickodonnell2010 ปีที่แล้ว

    This is a great concise example! I adapted it to my Vuetify 3 project and the options format and it worked 1st time. Thanks for this, brilliant, and btw I was making it much more difficult for myself prior to watching this lol.

  • @Rasmuskvejborg
    @Rasmuskvejborg 7 หลายเดือนก่อน

    Thank you for this excellent guide that is not a second longer than it needs to be!

  • @KayNaude
    @KayNaude ปีที่แล้ว

    Very helpful and straight to the point. Everything worked as it should. Thanks

  • @codexjay674
    @codexjay674 ปีที่แล้ว

    Thank you so much for this video. i just started Vue and this is just what I needed 👍

  • @juanalbertoboada
    @juanalbertoboada 2 ปีที่แล้ว

    WOW! Amazing tutorial! simple and streightforward!
    Two thumbs up!

  • @HijadeOdin
    @HijadeOdin 5 หลายเดือนก่อน

    Excellent! first time I watch a QUICK guide for development and it actually works haha! Thank you, this is very usefull

  • @atherisu4842
    @atherisu4842 ปีที่แล้ว

    Thank you so much for this video!!!
    I think a role based access control with firebase would be a great continuation to this

  • @lerne-du
    @lerne-du 9 หลายเดือนก่อน

    Thank you! It is the best video about Vue 3 and Firebase Authentication

  • @JohannGarrido
    @JohannGarrido 2 ปีที่แล้ว

    Man, this video is just GOLD. Subscribed.

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว

      thanks so much!

  • @youssefelshahawy8080
    @youssefelshahawy8080 2 ปีที่แล้ว +6

    Such an amazing tutorial, man!
    Keep going

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +1

      thank youu

  • @lowkeygaming4716
    @lowkeygaming4716 2 ปีที่แล้ว

    Very nice vid. You have discussed a lot of useful stuff in a short time.

  • @deadlyprogrammer6780
    @deadlyprogrammer6780 3 หลายเดือนก่อน

    thanks for the toturial! hope you come back publishing more videos ^^

  • @RicardoMouraGimenez
    @RicardoMouraGimenez ปีที่แล้ว

    Best tutorial on youtube. Thank you!

  • @mj-lc9db
    @mj-lc9db ปีที่แล้ว

    Yoooo! Thanks this helped me for my school work

  • @martijn_schermers
    @martijn_schermers 2 ปีที่แล้ว

    Big love, you solved a problem I was dealing with for tooo long 🤟

  • @sanusivictorolajuwon514
    @sanusivictorolajuwon514 2 ปีที่แล้ว +1

    Great tutorial 🤗🤗🤗. Thank You 👍🏽

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +1

      thanks for watching!

  • @velhoguidsd
    @velhoguidsd ปีที่แล้ว

    Simple and perfect example.

  • @tobiasfriedrich00
    @tobiasfriedrich00 2 ปีที่แล้ว

    Wow! Amazing Video!!! Thank you!

  • @ashwinsaxena1437
    @ashwinsaxena1437 2 ปีที่แล้ว +1

    Thanks for the tutorial! Nicely paced, some Fireship influence here, am I right?

  • @user-kx9mb9fk7i
    @user-kx9mb9fk7i 8 หลายเดือนก่อน

    you are the best, love you man

  • @comunicloud30
    @comunicloud30 2 ปีที่แล้ว

    You rock!!!! Thank you very much for this video.

  • @aasmundnrsett8751
    @aasmundnrsett8751 ปีที่แล้ว

    Really smooth 👌🏻

  • @TylerPotts
    @TylerPotts 2 ปีที่แล้ว +1

    Hey! Great tutorial! I love the pacing! :D

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +2

      thanks a ton. been a fan of your videos too!!

    • @TylerPotts
      @TylerPotts 2 ปีที่แล้ว

      @@LearnVue Haha, thank you! :D

  • @gcfhornet
    @gcfhornet ปีที่แล้ว

    Really helps. Thanks.

  • @varavinth5196
    @varavinth5196 2 ปีที่แล้ว

    Great tutorial.. And very useful..

  • @tamtm-gp9nr
    @tamtm-gp9nr หลายเดือนก่อน

    thank you for this amazing content

  • @rucibi
    @rucibi ปีที่แล้ว

    wonderful ! Thanks !!

  • @lhceleguim
    @lhceleguim 2 ปีที่แล้ว

    simply fantastic

  • @closeluca
    @closeluca 2 ปีที่แล้ว +1

    thanks dude, this is a very nice tutorial!

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +1

      thank you thank you! and thanks for the support on so many of my vids!

  • @caiovinicius7871
    @caiovinicius7871 2 ปีที่แล้ว

    Amazing video, ty!

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +1

      thanks for the support 💚

  • @NoleKsum-si6vg
    @NoleKsum-si6vg ปีที่แล้ว

    You helped me so much

  • @ReshiMahendra
    @ReshiMahendra 2 ปีที่แล้ว +1

    Nice tuts.. waiting for the oauth signin/signup with local database instead of firebase 😁👍

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +1

      Thanks, I'll look into making one!

  • @Dania-Rahub
    @Dania-Rahub ปีที่แล้ว

    Amazing !

  • @alexanderpooh4015
    @alexanderpooh4015 2 ปีที่แล้ว

    Thank you! You really helped me! Thanks god I learnt English!

    • @alexanderpooh4015
      @alexanderpooh4015 2 ปีที่แล้ว

      Take your Like and Subscribe!

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +1

      Glad i could help :)

  • @Skif769
    @Skif769 2 ปีที่แล้ว

    Thank you! Very help me add fairebase in prj

  • @funkdoc94
    @funkdoc94 22 วันที่ผ่านมา

    Great video, thank you.
    One note though: never tell the user "wrong password" or "wrong username", this is a security threat.

  • @tomaszleszczynski8928
    @tomaszleszczynski8928 11 หลายเดือนก่อน

    Hi Matt. First of all, thanks for the tutorial. The content you provided is really helpful. I followed your instructions, but I'm stuck with logging out when the user closes the browser tab. Any advice?

  • @medamazigh
    @medamazigh 2 ปีที่แล้ว

    THANK YOU SO MUCH

  • @malathip4043
    @malathip4043 2 ปีที่แล้ว

    I want to use .net core mssql for backend, what is the auth plugin to use with vue

  • @wimdenherder
    @wimdenherder ปีที่แล้ว

    Fantastic tutorial. If you look to LIKES / VIEWS, it seems that video's with a ratio like this video are really high quality

    • @wimdenherder
      @wimdenherder ปีที่แล้ว

      You can adjust Elliot Waites' chrome extension to this rating-system, enjoy!

  • @warrenprezydent2010
    @warrenprezydent2010 ปีที่แล้ว

    Really good video. With yours help, firebase doesn't look that hard :D

  • @LeagueOfAI711
    @LeagueOfAI711 2 ปีที่แล้ว

    Good tutorial, could you make a Firestore video please?

  • @SULAIMANADAMU-wp8fj
    @SULAIMANADAMU-wp8fj 8 หลายเดือนก่อน

    I love this video, please what's the name of the vs-code theme?

  • @ridwanridiawan
    @ridwanridiawan ปีที่แล้ว +1

    Hi terimakasih, saya pelanggan baru anda ,,👍🏻

  • @maskman4821
    @maskman4821 2 ปีที่แล้ว +2

    This is very useful and practical vue ÷ firebase auth tutorial, we can use this as a template, thank you so much. Can you also make a vue + firebase token auth with express or nuxt tutorial, I really want to know how to implement token auth with firebase javascript/admin sdk, thank you in advance 🙏🙏🙏

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +1

      thanks!! i'll definitely look into the token auth capabilities. actually looking into something like that for the development of learnvue.co right now!

  • @jonathanesedji8705
    @jonathanesedji8705 ปีที่แล้ว

    ty es un manstrr le sang !

  • @riyad-appscode
    @riyad-appscode 2 ปีที่แล้ว

    awesome video

  • @AryanChaurasia10
    @AryanChaurasia10 2 ปีที่แล้ว +3

    Nice but if you could also show documentations steps it will be lot easier to learn for new comers. Like going through the documentation of Firebase showing users how you got the method and then using in your code.

    • @Shulkerkiste
      @Shulkerkiste ปีที่แล้ว +1

      The Firebase authentication documentation is really confusing. It wouldn't help for this video.

  • @shayonghoshroy7208
    @shayonghoshroy7208 ปีที่แล้ว

    Great tutorial! Really helped me a lot. Only comment, please provide source code in the description.

  • @teosean_9647
    @teosean_9647 ปีที่แล้ว +1

    I have an error property 'email' and 'password' was accessed during render but not defined on instance, do u know how to fix it?

  • @SunilVGandhi
    @SunilVGandhi 2 ปีที่แล้ว +1

    Is there a repo where I can check out the code ?

  • @chase5998
    @chase5998 ปีที่แล้ว

    Hi there, thanks for the tutorial.
    Unfortunately, though the google popup sign in works on desktop web, for some reason when i'm on iphone safari, when i tap on the sign in with google option button, the popup appears for half a second then disappears. I've tried safari, chrome and brave and all faced the same issues. It works normally when i'm on my desktop though. Anyone else faced a similar issue?

  • @emburaman
    @emburaman 2 ปีที่แล้ว

    Great tutorial.
    Now, anyone also getting "error 'handleSignOut' is assigned a value but never used" ? How to solve that?

  • @radekhladik7895
    @radekhladik7895 2 ปีที่แล้ว

    There is one thing that should have been noted in the video. The route guard is client side so it must not be considered secure on its own. It is more like a convenience for the user than real barrier.... You need to implement proper guards in your backend.

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว

      yeah definitely - adding some auth checks to the API calls is always necessary!

  • @domb7210
    @domb7210 2 ปีที่แล้ว +3

    Can someone explain to me the getCurrentUser function and the removeListener callback in 7:42?
    I do not understand why removeListener is called inside itself.
    I also tried not calling removeListener inside itself, and it works the same. What is the difference?
    Thank you!

    • @web3388
      @web3388 2 ปีที่แล้ว

      calling removeListener again cancels the tracking of onAuthStateChanged. Let me explain with an example, onAuthStateChanged solved the problem of the lack of authorization status when the page was refreshed. Those. we waited for this event and received an authorized user. If tracking is not canceled, then onAuthStateChanged will fire on every route change, in general this will not affect the work in any way, but in fact we only needed it once - on reboot. I hope I managed to explain))

    • @wimdenherder
      @wimdenherder ปีที่แล้ว

      I tried to make it shorter, but actually the listener persists, so it's 'still detecting' multiple times when logging out and in again. But still, not really a performance issue ;)
      const getCurrentUser = () =>
      new Promise((resolve, reject) => {
      onAuthStateChanged(getAuth(), e => {
      console.log('still detecting');
      resolve(e);
      }, reject)
      }
      )
      So you could also write this, which is easier to read:
      const getCurrentUser = () =>
      new Promise((resolve, reject) => {
      onAuthStateChanged(getAuth(), resolve, reject)
      }
      )

  • @santokhan_
    @santokhan_ ปีที่แล้ว

    Great

  • @noaah.m
    @noaah.m ปีที่แล้ว

    my routes arent working to go to the register or sign in page?

  • @mahtoosacks
    @mahtoosacks ปีที่แล้ว

    Why does my app keep making the homepage default to /#? All my routes end up being prefixed with /#/

  • @MohamedGamal-hd7rc
    @MohamedGamal-hd7rc ปีที่แล้ว

    PLEASE 🙏 🙏 Can someone tell me i make this auth how i can use laravel as a backend and make relationships with user

  • @donggillee6527
    @donggillee6527 ปีที่แล้ว

    luv ya

  • @brainandrie2874
    @brainandrie2874 ปีที่แล้ว

    How to validate the error that the email we used has been registered?

  • @YuvrajSingh-sm1rc
    @YuvrajSingh-sm1rc ปีที่แล้ว

    but where did you added client secret and id

  • @zergzerg4844
    @zergzerg4844 ปีที่แล้ว

    In your lesson you've made a mistake when you initialized firebase on 2:20. According firebase's manual if you are going to use Auth config you need to pass app into getAuth method =>
    const app = initializeApp(firebaseConfig);
    // Initialize Firebase Authentication and get a reference to the service
    const auth = getAuth(app);
    And after then using this variables.

  • @damianperez7736
    @damianperez7736 2 ปีที่แล้ว +1

    Can someone explain to me what is happening in 7:41 ? Why is removeListener calling to itself?

    • @hashira_d
      @hashira_d 7 หลายเดือนก่อน

      because onAuthStateChanged return unsubscribe method before further code execution

  • @traitotaku4940
    @traitotaku4940 ปีที่แล้ว

    Awesome Video! 6:49 I get this error: Uncaught FirebaseError: Firebase: Need to provide options, when not being deployed to hosting via source. (app/no-options).
    I noticed that other components are calling getAuth() in onMounted(), how can I fix this error? Please help.

    • @traitotaku4940
      @traitotaku4940 ปีที่แล้ว

      Sorry it's solved! I was missing the
      else {
      next();
      }

  • @franzieerides7306
    @franzieerides7306 2 ปีที่แล้ว

    Great tutorial!
    Can anyone help me? I'm getting a "TypeError: next is not a function" in router/index.js

    • @Shulkerkiste
      @Shulkerkiste ปีที่แล้ว

      It should look something like this:
      router.beforeEach(async (to, from, next) => {
      const routeRequiresAuth = to.matched.some(record => record?.meta.requiresAuth);
      await isLoggedIn() || !routeRequiresAuth ? next() : next({ name: 'login' });
      });

  • @Bemidbar
    @Bemidbar 2 ปีที่แล้ว

    Why you've deleted "const app = " at 2:18?

  • @69leostereo
    @69leostereo 2 ปีที่แล้ว

    some can share the code for this project ?

  • @pattlactroi4279
    @pattlactroi4279 2 ปีที่แล้ว +2

    Can you provide the source code, please! Thank you!

  • @danielwatson6529
    @danielwatson6529 2 ปีที่แล้ว

    yea go on bro, theres literally nothing on " vue 3 firebase 9 crud with typescript" I've been going round in circles for days I can't find anything but to me it feels like such an obvious stack/system once i can get It operating

  • @moodzc945
    @moodzc945 ปีที่แล้ว

    how to prevent a logged in user to access the sign in and register?

  • @storyaz09
    @storyaz09 ปีที่แล้ว

    Hii can you provide source code please please

  • @zackplauche
    @zackplauche ปีที่แล้ว

    3:52 There's nothing in my localStorage, and I successfully created an account and "logged in" apparently. 👀

    • @Shulkerkiste
      @Shulkerkiste ปีที่แล้ว

      I was confused too, when I've tried it the first time ^^
      Firebase stores the user in DevTools -> Application -> IndexedDB.

  • @deavisdude
    @deavisdude ปีที่แล้ว

    Great tutorial, unfortunately when I try to use signInWithPopup or signInWithRedirect I am sent to a blank page...

    • @LearnVue
      @LearnVue  ปีที่แล้ว +1

      Hey! Since releasing this video, there's been a major update to the Firebase SDK. an awesome member of the community updated the Github repo for it, let me know if this helps: github.com/matthewmaribojoc/vue-firebase-auth

    • @deavisdude
      @deavisdude ปีที่แล้ว

      @@LearnVue Thanks for the reply, but it doesn't look like that project uses the google auth provider. I am able to get email and password working. Just not the google auth provider

    • @deavisdude
      @deavisdude ปีที่แล้ว

      @@LearnVue Tried commenting before with a link to my stack overflow post, but it seems like they're being deleted.

  • @HenriqueLeal92
    @HenriqueLeal92 2 ปีที่แล้ว +1

    I finished it with many errors, all of them "is defined but never used" because i don't know where i was supposed to use.. that's why i watched the video to learn.. nice try but i found it incomplete

  • @parkerboling6361
    @parkerboling6361 2 ปีที่แล้ว

    i hate this shit..... everytime i follow along with a video something fucks up. why is it saying component names should be multi-word

    • @LearnVue
      @LearnVue  2 ปีที่แล้ว +2

      hey! i think that might be an issue coming from eslint.vuejs.org/rules/multi-word-component-names.html - let me know if this helps :)

  • @nikolamanojlovic7657
    @nikolamanojlovic7657 ปีที่แล้ว

    this is too fast, i dont understand what are you doing :/