aws-cognito-react
Version:
aws-cognito-react primary goal is to provide user management services for a web App in a scalable serverless way.
27 lines (21 loc) • 509 B
JavaScript
import { connect } from 'react-redux'
import { reducer } from 'aws-cognito-redux-saga'
import ResetPasswordComponent from './ResetPassword'
const mapStatetoProps = state => {
return {
auth: state.auth
}
}
const mapDispatchToProps = dispatch => {
return {
init: () => {
dispatch(reducer.init())
},
forgotPassword: username => {
dispatch(reducer.forgotPassword(username))
}
}
}
export default connect(mapStatetoProps, mapDispatchToProps)(
ResetPasswordComponent
)