-
-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(auth): remove support for credentials.signIn in createUser (signIn is automatic) #513
Comments
@Fandekasp The It also seems like the Just out of curiosity, what is the |
Also getting this problem on v2.1.8 |
@prescottprue sorry for the late reply. the postUserAction is just a saga to query my backend api. we store user information in our db and don't use firebase profiles. |
Also getting this problem on v2.1.8 |
I'm wondering if it's actually possible to avoid this, under the hood,
react-redux-firebase/src/actions/auth.js Lines 560 to 616 in 44fa39d
However, in the firebase documentation it says:
|
@karltaylor It appears you are correct, thanks for pointing that out. That would explain why the auth state change was being fired even though login wasn't being called directly. With that in mind, this feature may not actually be possible unless it logged out after creating the new user. Not sure what the use case for that would be, but it seems like it would almost be more clear to say that one should call |
I used this workaround to achieve that functionality: |
@kubalobo Good to know, it seems like that is the signing out right after as I was mentioning. I am open to supporting that, but it doesn't really make sense with |
Not exactly. I needed to allow administrator to create account for new users, so after that nothing should happend - neither singIn or logOut. |
@kubalobo Is there a reason that couldn't be done through a cloud function using the The cloud function with I am open to the feature of logging back out right after logging in, but is different than the original intention of |
Yea it sounds like much better approach. Thanks! |
Glad to know it will work for you 😄 I'm going to switch this issue to capture getting rid of the |
Planning to have this be one of the "potentially breaking changes" in |
Confirmed that |
* feat(auth): remove `signIn` option from createUser (new user is automatically signed in through Firebase SDK) - #513 * feat(core): new pattern for getting extended firebase instance in thunks (added back `getFirebase` to api) - #635 * fix(HOCs): switch to `UNSAFE_componentWillReceiveProps` in class based HOCs to prevent warnings with 16.9.0 - #755 * fix(HOCs): switch `withFirebase` and `withFirestore` back to pre-hooks compatible logic * fix(core): replace lodash methods such as `isArray`, `isBoolean`, `isString`, `size`, `compact` and `isFunction` with native methods in a number of places * chore(deps): update lodash to 4.17.15 * chore(docs): add docs for how to reference data from state for reselect selectors - #614 * chore(docs): update client side role assign example in roles recipes - #699 * chore(docs): add example for assigning role in cloud function - #699
Released in v3.0.0-beta. Reach out if it doesn't work as expected or doesn't solve your issue. Thanks for reporting |
Do you want to request a feature or report a bug?
(If this is a usage question, please do not post it here—post it on gitter. If this is not a “feature” or a “bug”, or the phrase “How do I...?” applies, then it's probably a usage question.)
bug
What is the current behavior?
when setting
{signIn: false}
, a@@reactReduxFirebase/LOGIN
action is still triggered.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.
What is the expected behavior?
By setting signIn to false, no action
@@reactReduxFirebase/LOGIN
should be raised.On the other side, no action seems to be raised for the createUser action... that's weird
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
The text was updated successfully, but these errors were encountered: