Angularfire: auth.createUser does not only create a user.

Created on 7 Feb 2017  Â·  3Comments  Â·  Source: angular/angularfire

Hi,

First of all thank you for this amazing library. It is very helpful.

I have an issue with firebase.auth.createUser. The user is created on firebase but it also set the current connected user to the one that was just created.

I'm using v2.0.0-beta.7.

Thank you.

Most helpful comment

The method name is confusing. Also, the constraint is not documented, neither the expected behavior is.

In the other hand I think that user creation should not be done from the client side code anyway. I'll consider using the admin SDK.

Think you all.

All 3 comments

createUser() function automatically authenticates to the user which is just created. Maybe this can help: http://stackoverflow.com/questions/37517208/firebase-kicks-out-current-user/38013551

This is the expected behavior. To bulk create users without authenticating
as that user, you'll need to use the firebase admin SDK.

On Feb 11, 2017 8:32 PM, "borakrc" notifications@github.com wrote:

createUser() function automatically authanticates. Maybe this can help:
http://stackoverflow.com/questions/37517208/firebase-
kicks-out-current-user/38013551#38013551

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angularfire2/issues/814#issuecomment-279191926,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMCy-VI0HbbYPYVV4kZxzE9hmDNUKfvks5rbm8xgaJpZM4L5S5s
.

The method name is confusing. Also, the constraint is not documented, neither the expected behavior is.

In the other hand I think that user creation should not be done from the client side code anyway. I'll consider using the admin SDK.

Think you all.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cre8 picture cre8  Â·  3Comments

isylhdin picture isylhdin  Â·  3Comments

StephenFluin picture StephenFluin  Â·  3Comments

adriandurran picture adriandurran  Â·  3Comments

jteplitz picture jteplitz  Â·  3Comments