How to use the ra-core.userLogin function in ra-core

To help you get started, we’ve selected a few ra-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thedistance / ra-cognito / src / Login / index.js View on Github external
      .catch(error => dispatch(userLogin({ error })));
  }
github thedistance / ra-cognito / src / Login / index.js View on Github external
    ).then(result => dispatch(userLogin(result)));
  }
github bootstrap-styled / ra-ui / src / components / auth / LoginForm.js View on Github external
const login = (auth, dispatch, { redirectTo }) => dispatch(userLogin(auth, redirectTo));
github thedistance / ra-cognito / src / Login / index.js View on Github external
.then(cognitoUser => {
        if (isNewPasswordRequired(cognitoUser)) {
          this.setState({
            cognitoUser,
            step: 'change_password',
          });
        } else {
          dispatch(userLogin(cognitoUser));
        }
      })
      .catch(error => dispatch(userLogin({ error })));