Vue 3 + Firebase Authentication in 10 Minutes

  Рет қаралды 63,216

LearnVue

LearnVue

Күн бұрын

Пікірлер
@brunosargi7012
@brunosargi7012 2 жыл бұрын
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??
@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!
@nevenlukic
@nevenlukic Жыл бұрын
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.
@hyggedev2124
@hyggedev2124 2 жыл бұрын
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.
@luistrcastro
@luistrcastro 2 жыл бұрын
One of the best tutorials ever!! New, updated and straightforward
@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 2 жыл бұрын
thanks so much i really try to make videos that respect everyone's time, so i'm glad you like the style :)
@luisangelguzman2335
@luisangelguzman2335 2 жыл бұрын
Simple, concise, and streightforward. I have nothing to say but thank you. Keep up the amazing content!
@pushandhabalia1501
@pushandhabalia1501 2 жыл бұрын
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 🍻
@ignjat4123
@ignjat4123 2 жыл бұрын
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 жыл бұрын
Thanks bro, would love more firebase(9) stuff, love how u present it, the pace etc
@HijadeOdin
@HijadeOdin 10 ай бұрын
Excellent! first time I watch a QUICK guide for development and it actually works haha! Thank you, this is very usefull
@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.
@youssefelshahawy8080
@youssefelshahawy8080 2 жыл бұрын
Such an amazing tutorial, man! Keep going
@LearnVue
@LearnVue 2 жыл бұрын
thank youu
@Rasmuskvejborg
@Rasmuskvejborg Жыл бұрын
Thank you for this excellent guide that is not a second longer than it needs to be!
@JohannGarrido
@JohannGarrido 2 жыл бұрын
Man, this video is just GOLD. Subscribed.
@LearnVue
@LearnVue 2 жыл бұрын
thanks so much!
@atherisu
@atherisu Жыл бұрын
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 Жыл бұрын
Thank you! It is the best video about Vue 3 and Firebase Authentication
@codexjay674
@codexjay674 Жыл бұрын
Thank you so much for this video. i just started Vue and this is just what I needed 👍
@jaireina
@jaireina Күн бұрын
Nice and simple. Thank you!
@RicardoMouraGimenez
@RicardoMouraGimenez 2 жыл бұрын
Best tutorial on youtube. Thank you!
@deadlyprogrammer6780
@deadlyprogrammer6780 9 ай бұрын
thanks for the toturial! hope you come back publishing more videos ^^
@mj-lc9db
@mj-lc9db 2 жыл бұрын
Yoooo! Thanks this helped me for my school work
@juanalbertoboada
@juanalbertoboada 2 жыл бұрын
WOW! Amazing tutorial! simple and streightforward! Two thumbs up!
@domb7210
@domb7210 2 жыл бұрын
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 2 жыл бұрын
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) } )
@lowkeygaming4716
@lowkeygaming4716 2 жыл бұрын
Very nice vid. You have discussed a lot of useful stuff in a short time.
@velhoguidsd
@velhoguidsd Жыл бұрын
Simple and perfect example.
@aasmundnrsett8751
@aasmundnrsett8751 Жыл бұрын
Really smooth 👌🏻
@YourJulietnet
@YourJulietnet Ай бұрын
Great video! Can you help me out in which direction I need to search if I want the user (after logging in), to create a note or item and save it, but it's only viewable for this specific user? What is that called? Thanks again!
@TylerPotts
@TylerPotts 3 жыл бұрын
Hey! Great tutorial! I love the pacing! :D
@LearnVue
@LearnVue 3 жыл бұрын
thanks a ton. been a fan of your videos too!!
@TylerPotts
@TylerPotts 3 жыл бұрын
@@LearnVue Haha, thank you! :D
@sanusivictorolajuwon514
@sanusivictorolajuwon514 3 жыл бұрын
Great tutorial 🤗🤗🤗. Thank You 👍🏽
@LearnVue
@LearnVue 3 жыл бұрын
thanks for watching!
@martijn_schermers
@martijn_schermers 2 жыл бұрын
Big love, you solved a problem I was dealing with for tooo long 🤟
@Santiago-e8j9f
@Santiago-e8j9f Жыл бұрын
you are the best, love you man
@ridwanridiawan
@ridwanridiawan 2 жыл бұрын
Hi terimakasih, saya pelanggan baru anda ,,👍🏻
@wimdenherder
@wimdenherder 2 жыл бұрын
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 2 жыл бұрын
You can adjust Elliot Waites' chrome extension to this rating-system, enjoy!
@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.
@funkdoc94
@funkdoc94 6 ай бұрын
Great video, thank you. One note though: never tell the user "wrong password" or "wrong username", this is a security threat.
@ashwinsaxena1437
@ashwinsaxena1437 2 жыл бұрын
Thanks for the tutorial! Nicely paced, some Fireship influence here, am I right?
@AryanChaurasia10
@AryanChaurasia10 2 жыл бұрын
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 Жыл бұрын
The Firebase authentication documentation is really confusing. It wouldn't help for this video.
@ReshiMahendra
@ReshiMahendra 3 жыл бұрын
Nice tuts.. waiting for the oauth signin/signup with local database instead of firebase 😁👍
@LearnVue
@LearnVue 3 жыл бұрын
Thanks, I'll look into making one!
@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!
@SULAIMANADAMU-wp8fj
@SULAIMANADAMU-wp8fj Жыл бұрын
I love this video, please what's the name of the vs-code theme?
@tamtm-gp9nr
@tamtm-gp9nr 6 ай бұрын
thank you for this amazing content
@tobiasfriedrich00
@tobiasfriedrich00 2 жыл бұрын
Wow! Amazing Video!!! Thank you!
@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 жыл бұрын
Glad i could help :)
@varavinth5196
@varavinth5196 2 жыл бұрын
Great tutorial.. And very useful..
@closeluca
@closeluca 2 жыл бұрын
thanks dude, this is a very nice tutorial!
@LearnVue
@LearnVue 2 жыл бұрын
thank you thank you! and thanks for the support on so many of my vids!
@lhceleguim
@lhceleguim 2 жыл бұрын
simply fantastic
@ElmachitoSilbateador
@ElmachitoSilbateador 2 жыл бұрын
Can someone explain to me what is happening in 7:41 ? Why is removeListener calling to itself?
@hashira_d
@hashira_d Жыл бұрын
because onAuthStateChanged return unsubscribe method before further code execution
@comunicloud30
@comunicloud30 2 жыл бұрын
You rock!!!! Thank you very much for this video.
@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(); }
@gcfhornet
@gcfhornet Жыл бұрын
Really helps. Thanks.
@SunilVGandhi
@SunilVGandhi 2 жыл бұрын
Is there a repo where I can check out the code ?
@GabrielAlves-rs6eq
@GabrielAlves-rs6eq 3 ай бұрын
great video!
@LeagueOfAI711
@LeagueOfAI711 2 жыл бұрын
Good tutorial, could you make a Firestore video please?
@maskman4821
@maskman4821 3 жыл бұрын
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 жыл бұрын
thanks!! i'll definitely look into the token auth capabilities. actually looking into something like that for the development of learnvue.co right now!
@tomaszleszczynski8928
@tomaszleszczynski8928 Жыл бұрын
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?
@warrenprezydent2010
@warrenprezydent2010 2 жыл бұрын
Really good video. With yours help, firebase doesn't look that hard :D
@teosean_9647
@teosean_9647 2 жыл бұрын
I have an error property 'email' and 'password' was accessed during render but not defined on instance, do u know how to fix it?
@caiovinicius7871
@caiovinicius7871 2 жыл бұрын
Amazing video, ty!
@LearnVue
@LearnVue 2 жыл бұрын
thanks for the support 💚
@NoleKsum-si6vg
@NoleKsum-si6vg 2 жыл бұрын
You helped me so much
@Dania-Rahub
@Dania-Rahub 2 жыл бұрын
Amazing !
@ohmydefense
@ohmydefense 2 жыл бұрын
Why you've deleted "const app = " at 2:18?
@Skif769
@Skif769 2 жыл бұрын
Thank you! Very help me add fairebase in prj
@rucibi
@rucibi 2 жыл бұрын
wonderful ! Thanks !!
@malathip4043
@malathip4043 2 жыл бұрын
I want to use .net core mssql for backend, what is the auth plugin to use with vue
@mahtoosacks
@mahtoosacks 2 жыл бұрын
Why does my app keep making the homepage default to /#? All my routes end up being prefixed with /#/
@shayonghoshroy7208
@shayonghoshroy7208 2 жыл бұрын
Great tutorial! Really helped me a lot. Only comment, please provide source code in the description.
@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
@riyad-appscode
@riyad-appscode 2 жыл бұрын
awesome video
@noaah.m
@noaah.m 2 жыл бұрын
my routes arent working to go to the register or sign in page?
@emburaman
@emburaman 2 жыл бұрын
Great tutorial. Now, anyone also getting "error 'handleSignOut' is assigned a value but never used" ? How to solve that?
@medamazigh
@medamazigh 2 жыл бұрын
THANK YOU SO MUCH
@YuvrajSingh-sm1rc
@YuvrajSingh-sm1rc Жыл бұрын
but where did you added client secret and id
@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?
@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' }); });
@brainandrie2874
@brainandrie2874 Жыл бұрын
How to validate the error that the email we used has been registered?
@jonathanesedji8705
@jonathanesedji8705 2 жыл бұрын
ty es un manstrr le sang !
@zackplauche
@zackplauche 2 жыл бұрын
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.
@santokhan_
@santokhan_ Жыл бұрын
Great
@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
@pattlactroi4279
@pattlactroi4279 2 жыл бұрын
Can you provide the source code, please! Thank you!
@69leostereo
@69leostereo 2 жыл бұрын
some can share the code for this project ?
@deavisdude
@deavisdude 2 жыл бұрын
Great tutorial, unfortunately when I try to use signInWithPopup or signInWithRedirect I am sent to a blank page...
@LearnVue
@LearnVue 2 жыл бұрын
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 2 жыл бұрын
@@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 2 жыл бұрын
@@LearnVue Tried commenting before with a link to my stack overflow post, but it seems like they're being deleted.
@moodzc945
@moodzc945 2 жыл бұрын
how to prevent a logged in user to access the sign in and register?
@donggillee6527
@donggillee6527 2 жыл бұрын
luv ya
@joascastelo8519
@joascastelo8519 3 ай бұрын
muito fácil que isso, nunca vi ninguém deixar um conteudo tão simples
@Busyideas
@Busyideas 2 жыл бұрын
Hii can you provide source code please please
@HenriqueLeal92
@HenriqueLeal92 2 жыл бұрын
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 жыл бұрын
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 :/
Vue Slots Simplified
7:25
LearnVue
Рет қаралды 57 М.
Pinia Simplified
4:28
LearnVue
Рет қаралды 126 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
5 Ways to Fetch Data from an API in Vue 3 Composition API
6:28
Justin Brooks
Рет қаралды 76 М.
Building a Realtime Chat App with Vue 3 and Firebase in 7 minutes
8:01
Two Vue Directives that Boost App Performance
3:28
LearnVue
Рет қаралды 28 М.
3 Ways to Persist Pinia State
4:54
LearnVue
Рет қаралды 55 М.
Learn Pinia in 30 MINUTES! (Vue JS 3)
33:58
Make Apps with Danny
Рет қаралды 123 М.
Easy Loading Screens with Vue Suspense Components
4:29
LearnVue
Рет қаралды 34 М.
Vue.js and #Firebase crash course
24:00
Firebase
Рет қаралды 10 М.
Animate an Element on Scroll in 4 Minutes?
4:04
LearnVue
Рет қаралды 52 М.