javascript - Firebase kicks out current user -


so have issue every time add new user account, kicks out current user signed in. read firebase api , said "if new account created, user signed in automatically" never said else avoiding that.

      //add employees       addemployees: function(formdata){         firebase.auth().createuserwithemailandpassword(formdata.email, formdata.password).then(function(data){           console.log(data);         });       }, 

i'm admin , i'm adding accounts site. if can add account without being signed out , signed new account. way can avoid this?

update 20161108 - original answer below

firebase released firebase-admin sdk, allows server-side code , other common administrative use-cases. read installation instructions , dive documentation on creating users.

original answer

this not possible. creating email+password user automatically signs new user in.


Comments