DEV Community

Discussion on: The Complete Guide to User Authentication with the Amplify Framework

Collapse
joeygoksu profile image
Joey Goksu

If you get an error for Auth.federatedSignIn({ provider: 'Google' })

try this ⬇️
import { CognitoHostedUIIdentityProvider } from "@aws-amplify/auth/lib/types";

Auth.federatedSignIn({
provider: CognitoHostedUIIdentityProvider.Google
});