Software Squirrel
asked on
Authentication in Angular and Firebase w/ custom fields in Firestore
I am new to Angular and Firebase. I created an app where I am using email user and pass auth with Firebase auth. When the user registers with a user and pass, two additional fields are added and populated in Firestore (Display Name and photoURL). Those are populated by code in the auth.services.ts file. So, when a user logs in again, it authenticates but then writes the Display name and photoURL again into the FIrestore. I want to be able to add (or let the user add) the Display name and photo after they are logged in. Here is what I have so far. Any thoughts or direction?
FirestoreDB
Code in auth.services.ts
FirestoreDB
Code in auth.services.ts
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.