Skip to content

feat(auth): remove support for credentials.signIn in createUser (signIn is automatic) #513

Closed
@AdrienLemaire

Description

@AdrienLemaire

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.

  doSubmit = async ({email, password, firstName, lastName}) => {
    const {dispatch, firebase} = this.props;
    await firebase.createUser({
      email,
      password,
      signIn: false,
    });
    dispatch(postUserAction({email, firstName, lastName}));
  };

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?

$ yarn list|grep react-redux
├─ react-redux-firebase@2.1.6
├─ react-redux@5.0.7

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions