I have an admin setup using angularfire2 and i'm trying to make it so the logged in admin user can update another user's email/password. I know you can call something like this.af.auth.getAuth().auth.updateEmail(this.user.get('email').value) to update the currently logged in user's info, but how to I update a different user's info?
-
Have you considered using firebase-admin node.js? It allows you to update any user using admin privileges: firebase.google.com/docs/admin/setupbojeil– bojeil2017-04-03 03:46:10 +00:00Commented Apr 3, 2017 at 3:46
-
1You don't in code. Firebase has no concept of 'admin user' (unfortunately) and trying to work with that concept in Firebase is a dead end.Jay– Jay2017-04-03 19:16:00 +00:00Commented Apr 3, 2017 at 19:16
-
Possible duplicate of Change password with Firebase for AndroidJay– Jay2017-04-03 19:16:16 +00:00Commented Apr 3, 2017 at 19:16
-
@Jay Not a duplicate, not even close to what they were asking and completely different platform.NineBlindEyes– NineBlindEyes2017-04-04 15:21:15 +00:00Commented Apr 4, 2017 at 15:21
-
@Jay They don't have a concept of admin user, but they do have a way to handle security rules so you'd think there would be a way to do it.NineBlindEyes– NineBlindEyes2017-04-04 15:23:58 +00:00Commented Apr 4, 2017 at 15:23
|
Show 2 more comments