aws-cognito-react
Version:
aws-cognito-react primary goal is to provide user management services for a web App in a scalable serverless way.
29 lines (22 loc) • 520 B
JavaScript
import React from 'react'
import PropTypes from 'prop-types'
import { config } from 'aws-cognito-redux-saga'
class Auth extends React.Component {
static propTypes = {
getUser: PropTypes.func,
isSignedIn: PropTypes.string
}
componentWillMount() {
config.config.set({
region: 'us-east-1',
IdentityPoolId: '',
UserPoolId: 'us-east-1_EEtXcO2PV',
ClientId: '79c2ieo8ubsibcqn7msk19ea89'
})
this.props.getUser()
}
render() {
return null
}
}
export default Auth