Brian Wendt
03/12/2022, 5:27 AMgoogle.clientId
in the Auth stack. Any help is much appreciated!Gabriel Araújo
03/12/2022, 12:49 PMAuth.federatedSignIn({
provider: "Google"
})
Where Auth is the object from Amplify that the guide shows.
This will take you to google login page.
Another option is to use Amplify UI it comes with these buttons...
https://ui.docs.amplify.aws/
https://ui.docs.amplify.aws/components/authenticator?platform=react#social-providers
reference:
https://aws-amplify.github.io/amplify-js/api/classes/authclass.html#federatedsigninBrian Wendt
03/12/2022, 1:11 PMamplify add auth
. Why wouldn't I just use Amplify CLI to manage my entire stack instead of SST?Gabriel Araújo
03/12/2022, 1:11 PMGabriel Araújo
03/12/2022, 1:16 PMBrian Wendt
03/12/2022, 1:17 PMAmplify.configure({
Auth: {
mandatorySignIn: true,
region: config.cognito.REGION,
userPoolId: config.cognito.USER_POOL_ID,
identityPoolId: config.cognito.IDENTITY_POOL_ID,
userPoolWebClientId: config.cognito.APP_CLIENT_ID
},
//...
});
Gabriel Araújo
03/12/2022, 1:18 PMGabriel Araújo
03/12/2022, 1:18 PMGabriel Araújo
03/12/2022, 1:19 PMGabriel Araújo
03/12/2022, 1:19 PMAuth.federatedSignIn({
provider: "Google"
})
Gabriel Araújo
03/12/2022, 1:21 PMawait Auth.signIn(email, password)
we call
await Auth.federatedSignIn({ provider: "Google" })
Gabriel Araújo
03/12/2022, 1:22 PMJay