()
| 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 |
no outgoing calls
no test coverage detected