<button
type="button"
onClick={() => Auth.federatedSignIn({provider: 'Google'})}>
Sign In with Google
</button>
How to fix
import { CognitoHostedUIIdentityProvider } from '@aws-amplify/auth/lib/types';
<button
type="button"
onClick={() => Auth.federatedSignIn({provider: CognitoHostedUIIdentityProvider.Google})}>
Sign In with Google
</button>
Example Code and Possible Error
How to fix