Angular Firebase Authentication - Implement Auth in Minutes
ฝัง
- เผยแพร่เมื่อ 5 ก.ค. 2024
- Learn how to do Angular Firebase authentication really fast. We will configure Firebase, bind it to Angular and implement registration, login, logout and getting a user for our Angular application
TIMESTAMPS
0:00 Introduction
0:14 What is Firebase?
1:07 Creating a project in Firebase
3:28 The project
4:29 Configuring Firebase
6:42 Registering a user
11:43 Adding validation
13:13 Adding user login
15:21 Persisting a user
► CHECK MY COURSES - monsterlessons-academy.com/co...
MOST POPULAR COURSES
► Javascript interview questions - monsterlessons-academy.com/co...
► Typescript interview questions - monsterlessons-academy.com/co...
► React interview questions - monsterlessons-academy.com/co...
► Angular Interview Questions monsterlessons-academy.com/co...
► Building real project with Angular + NgRx - monsterlessons-academy.com/co...
► Building real NestJS API - monsterlessons-academy.com/co...
► Building real fullstack project - monsterlessons-academy.com/co...
► Mastering Git - monsterlessons-academy.com/co...
► Mastering Docker and Docker Compose - monsterlessons-academy.com/co...
FOLLOW ME
► TWITTER - / monster_lessons
► INSTAGRAM - / monsterlessonsacademy
► TIKTOK - / monsterlessonsacademy
REFERENCES
► Source code - github.com/monsterlessonsacad...
Thank you brother. Im at my first angular project clone turning it to an e commerce page and I cant stress enough that you experienced people are helping us rookies so much with such videos. Programming is Tough
Everyone I appreciate your work!
Glad I could help!
Wow, another banger lesson from Monsterlesson Academy! 🤩 with the quality content as always! 🔥
Thank you!
Than you so much! I was struggling for so long with this until I found your video. Greatly appreciated
Glad it helped!
Many many thanks Oleksandr! 😀
Thank you too!
Thank you so much, you literally saved me, I was stuck for 8 hours with the firebase auth and this tutorial helped me a lot
You're welcome!
This is more valuable than 24k gold.
Thank you! This was a life saver!
Subscribed!
Thanks for the sub!
Simple and clear, thank you Sir. (like)
You are welcome!
Great tutorial, thank you
You are welcome!
This video is very helpful! Please make more videos related to angular and firebase. I hope you do include Ionic with those two sooner!
I will add it to the list of ideas
Great job! With new update of angular/fire (17.1.0) we should remember to move all provideXXX functions outside of the importProvidersFrom array, probably a bug
Yes it is indeed a bug, I found it in their github discussion panel
Thank you very much!
You are welcome!
Thank you!
You're welcome!
Great video!
Can you show a version that uses Firestore to expand the user object and still do live update (using the signal) based on both firebase auth and firestore data?
I will add it to the list of ideas
I really like your video, it is very simple and easy to understand. I would give a suggestion. It would be better if when explaining the project structure, start from the very beginning, starting from 'ng new' so that the audience knows what has been changed in the code.
I appreciate your feedback but this video is not about basics of Angular. Starting each video from ng new is not interesting for students and make videos 15-20 mins longer.
@MonsterlessonsAcademy Thank you for your reply and I am grateful for making a very helpful video for me that is not taught at my campus. I request for a video about Angular and Firebase so that people like me can learn more diligently, maybe you can make a video about Angular and Firebase (Login CRUD File upload) for the next Angular tutorial.
Thank you very much 😇😇😇
Great video - thanks! I'm using Angular 15 and noticed Angular 17 introduced signals for state management. Is there a similar approach for managing and filtering user state in Angular 15, particularly for controlling the exposure of Firebase user details? Thanks!
Just you RxJS then
@@MonsterlessonsAcademy thank you! Great videos, I’m finding your Angular & Auth videos really helpful.
Do you have the complete code in your repository?
In the provided link there is basically just the starter angular app without any fir stuff added.
It looks like I accidently overrode all files. So no I don't have the complete code anymore.
Thank you for the valuable lesson. My question is, why do you not prefer promise in angular? and What is the advantage of using Observable?
I already covered that
th-cam.com/video/LT8pyUwZQhI/w-d-xo.htmlsi=g4wvJjFQlT0HLsR2
Additionally in Angular everything returns an observable so using promises is not an Angular way and you limits yourself with possibilities of combining streams.
When i register the user the logout option appears it Is supposed to appear when I log in Not when I registered the user
Very good video. My current problem is how to implement guards. E. g. to protect the login page when a user is already logged in. Would be nice if you could make a video about that topic.
I will add it to the list of ideas
Hello, thanks for the video, I have a question, how do you handle uploading this firebase configuration to github? In case of deploying it let's say vercel, how could I handle this? thank you
I don't have experience on uploading it on vercel so can't say anything
@MonsterlessonsAcademy Hello, I figured it out, thanks anyway
thanks
Welcome
Very interesting but im wondering what is the point of Observable
It's an observable which doesn't return any data. In our case we want to redirect a user on success but we don't care about data
How do you ask such questions? Learn TS first before rushing into angular framework
@@Yarinmimonshut up
Great video!
It would be even more helpful if you showed how to prevent user from accessing pages when the user is not authenticated.
I have a separate video about Angular guards
th-cam.com/video/Yc93IvrouxY/w-d-xo.htmlsi=WLImXRV24wGgHrnF
how to add more data on registration for example age
You can check official documentation for that.
Can you create a video on getting and setting data with firebase realtime database with angular as there is no proper video about same
I will add it to the list of the ideas
this is roobt ??
how can i check if a user is logged or not?
I show that in the video on 15:11 th-cam.com/video/586O934xrhQ/w-d-xo.htmlsi=GKXsSPtoMzE4eFLa&t=921
@@MonsterlessonsAcademy thanks a lot
I love you
Thanks
i don't understand the app.config.ts file i didn't see that before what does it do and what is it 🫥
It's just a config that we use in main.ts. Angular generates it by default.
@@MonsterlessonsAcademy actually the provider thing it's very confusing how to do it more easily ? where the provider thing I want to handle it to the main app module cause here its very confusing