Building A User Authentication Service with Angular and Firebase

  Рет қаралды 26,331

Digital Fluency

Digital Fluency

Күн бұрын

Пікірлер: 28
@aram5642
@aram5642 5 жыл бұрын
A wonderful starter. Seems like the auxiliary user fields present on the Authentication record (displayName, phoneNumber) are better stored in a dedicated table instead. I was wondering while watching this video, what would be the best way to structure users and roles for enterprise apps...
@towpro2880
@towpro2880 6 жыл бұрын
Thank you. Can you do do a tutorial using the new @angular/fire package instead?
@towpro2880
@towpro2880 6 жыл бұрын
@oluwajoba emmanuel I figured it out it's basically the same thing you just have to add an instance of AngularFireDatabase from @angular/fire into your component or service's constructor and the rest is basically the same.
@vongodric
@vongodric 6 жыл бұрын
Thank you for the video - was great help for me with getting started with authentication.
@ClaytonAllenFP
@ClaytonAllenFP 6 жыл бұрын
Thanks a bunch for making this video! I was pulling my hair out trying to sift through mounds of irrelevant documentation. Is there any way you could expound upon implementing this method with an CanActivate Auth guard? Cheers!
@luisstiventrujilloortiz8734
@luisstiventrujilloortiz8734 6 жыл бұрын
What for is pipe in uid = this.afAuth.authState.pipe ???
@nammsy
@nammsy 5 жыл бұрын
your voice is like the villain from the moviel Phone Booth :P nice tutorial BTW!
@Halissonskalee
@Halissonskalee 5 жыл бұрын
Hi! i need help Property 'object' does not exist on type 'AngularFireDatabaseModule'?
@XTpF4vaQEp
@XTpF4vaQEp 5 жыл бұрын
Like a childs play, yet so powerful.
@rituhemnani8399
@rituhemnani8399 5 жыл бұрын
yarn add angularfire2 firebase is not recognized as an internal or external command
@enriquegreen7369
@enriquegreen7369 4 жыл бұрын
Hey thanks for the great vid, i have a problem though when i try to compile i get an error about missing dependencies. I cant find a fix so far, do you have any idea what it can be? ERROR in The target entry-point "@angular/fire" has missing dependencies: - @angular/core - @angular/common - rxjs - rxjs/operators
@shishgeor
@shishgeor 5 жыл бұрын
Didnt know Beric Dondarion does angular tutorials
@ChocoNut-09
@ChocoNut-09 6 жыл бұрын
Hello.. I was following the video but i got some errors from the auth Service. Thanks in advance.. :) I got confused 15:30 ERROR in src/app/service/userservice.service.ts(23,35): error TS1109: Expression expected. src/app/service/userservice.service.ts(23,37): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected. src/app/service/userservice.service.ts(35,23): error TS1005: ',' expected. src/app/service/userservice.service.ts(35,29): error TS1005: ',' expected. src/app/service/userservice.service.ts(35,48): error TS1005: ';' expected. src/app/service/userservice.service.ts(38,11): error TS1005: ';' expected. src/app/service/userservice.service.ts(42,12): error TS1005: ';' expected. src/app/service/userservice.service.ts(46,1): error TS1128: Declaration or statement expected. ============== import { Injectable } from '@angular/core'; import {Observable, of as observableOf,} from 'rxjs' import { AngularFireAuth } from '@angular/fire/auth'; import { map, switchMap } from 'rxjs/operators'; import { auth } from 'firebase'; @Injectable({ providedIn: 'root' }) export class UserserviceService { uid = this.afAuth.authState.pipe( map(authState => { if(!authState) { return null; } else { return authState.uid; } }) ); isAdmin = Observable = this.uid.pipe( switchMap(uid => { if(!uid) { return observableOf(false); } else { return this.db.object('/admin/' + uid).valueChanges(); } }) ); constructor(private afAuth: AngularFireAuth) { } login() { this.afAuth.auth.signInWithPopup(new auth.GoogleAuthProvider()); } logout() { this.afAuth.auth.signOut(); } }
@poojahandigund145
@poojahandigund145 6 жыл бұрын
This video really helped me to start with firebase authentication !! thanks a tonnn
@Aaron.Aguilar
@Aaron.Aguilar 5 жыл бұрын
Hi can you do a video on angular with cordova and firebase auth
@mbaljeetsingh
@mbaljeetsingh 6 жыл бұрын
I'm assuming you're using Windows. Can you tell me what are you using to show the opened tabs at the bottom?
@sayantanroy5996
@sayantanroy5996 6 жыл бұрын
Actually he's using KDE based linux distro.
@gadeichhorn
@gadeichhorn 4 жыл бұрын
brilliant! thanks for making this tutorial.
@deepakmarneni2110
@deepakmarneni2110 6 жыл бұрын
Very nice . Thank you so much. But how data reflecting from firebase without page refresh 🤔
@DigitalFluency
@DigitalFluency 6 жыл бұрын
The AngularFireDatabase.db.object(path).valueChanges() call returns an observable that emits every time the value changes. It maintains a connection via web socket.
@jesselima_dev
@jesselima_dev 6 жыл бұрын
Great video! Thanks!
@digamber_r7
@digamber_r7 6 жыл бұрын
Really helpful, thanks!
@stockiten3369
@stockiten3369 5 жыл бұрын
Thanks for the video please check these 2 projects Material Design: github.com/AnthonyNahas/ngx-auth-firebaseui Bootstrap: github.com/firebaseui/ng-bootstrap
@pradeepam9426
@pradeepam9426 6 жыл бұрын
can i get the code
@CafeRei
@CafeRei 6 жыл бұрын
wow, amazing \o/ thank you.
@davidlutta2503
@davidlutta2503 6 жыл бұрын
Thank You soo much !!
@daniellaerachannel
@daniellaerachannel 6 жыл бұрын
great!
@afrikanking4022
@afrikanking4022 4 жыл бұрын
This Video is irrelevant in 2020
Angular Firebase Authentication - Implement Auth in Minutes
22:23
Monsterlessons Academy
Рет қаралды 16 М.
Role-Based Authorization with Firestore
10:33
Fireship
Рет қаралды 116 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 20 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 10 МЛН
Firebase Google SignIn + Firestore w/ Angular
11:13
Fireship
Рет қаралды 103 М.
Updates and Notifications with the Angular Service Worker
14:45
Digital Fluency
Рет қаралды 36 М.
Fast HTTP Caching With Angular HTTP Observables
9:57
Digital Fluency
Рет қаралды 43 М.
Angular Authentication: Role Based Authorization
8:58
Code Shots With Profanis
Рет қаралды 56 М.
💥 Implementing Role Based Access Control RBAC with Firestore Security Rules
11:36
Firebase in Angular Applications | Mosh
26:53
Programming with Mosh
Рет қаралды 144 М.
Managing User Roles - NodeJS Authorization
16:33
PedroTech
Рет қаралды 147 М.
Cloud Firestore Tutorial using Angular (AngularFire5)
30:01
DesignCourse
Рет қаралды 37 М.
Drag and Drop with the Angular CDK - What's New in v7
10:44
Digital Fluency
Рет қаралды 42 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 20 МЛН