This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Amplify, {Auth} from 'aws-amplify'; | |
import awsconfig from './aws-config'; | |
Amplify.configure(awsconfig); | |
//once the amplify is configured you can use below call with onClick event of buttons or any other visual component to sign in. | |
//Example | |
<Button startIcon={<img alt="Sigin in With Google" src={logo} />} fullWidth variant="outlined" color="primary" onClick={() => Auth.federatedSignIn({provider: 'Google'})}> | |
Sign in with Google | |
</Button> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment