UNPKG

aws-cognito-react

Version:

aws-cognito-react primary goal is to provide user management services for a web App in a scalable serverless way.

16 lines (12 loc) 337 B
import { connect } from 'react-redux' import { ProtectedComponent } from './Protected' const mapStatetoProps = state => { return { isSignedIn: state.auth.isSignedIn, auth: state.auth } } const mapDispatchToProps = dispatch => { return {} } export default connect(mapStatetoProps, mapDispatchToProps)(ProtectedComponent)