MCPcopy Create free account
hub / github.com/codediodeio/angular-firestarter / updateUserData

Method updateUserData

src/app/core/auth.service.ts:137–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 //// Helpers ////
136
137 private updateUserData(): void {
138 // Writes user name and email to realtime db
139 // useful if your app displays information about users or for admin features
140
141 const path = `users/${this.currentUserId}`; // Endpoint on firebase
142 const data = {
143 email: this.authState.email,
144 name: this.authState.displayName
145 }
146
147 this.db.object(path).update(data)
148 .catch(error => console.log(error));
149
150 }
151
152
153

Callers 4

socialSignInMethod · 0.95
anonymousLoginMethod · 0.95
emailSignUpMethod · 0.95
emailLoginMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected