aws-samples / amplify-vite-react-template

This is a React starter for building a fullstack app with AWS Amplify.
https://docs.amplify.aws/gen2
MIT No Attribution
38 stars 36 forks source link

Cannot get loginwith #10

Open shailjaatkotiya opened 3 months ago

shailjaatkotiya commented 3 months ago

I cloned the repo and tried to run using the config

Amplify.configure({
  Auth: {
    identityPoolId: REACT_APP_AWS_IDENTITY_POOL_ID,
    region: REACT_APP_AWS_REGION,
    userPoolId: REACT_APP_AWS_USER_POOL_ID,
    userPoolWebClientId: REACT_APP_AWS_USER_POOL_WEB_CLIENT_ID,
    mandatorySignIn: true,
    cookieStorage: {
      domain: REACT_APP_URL,
      path: '/',
      expires: 1,
    },
    oauth: {
      domain: REACT_APP_AUTH_DOMAIN,
      scope: ['email', 'openid'],
      redirectSignIn: REACT_APP_URL,
      redirectSignOut: REACT_APP_SIGNOUT_URL,
      responseType: 'code',
    },
  },
});

image

I also have another vite application using aws-amplify version "^5.3.19", But I am unable to find CognitoHostedUIIdentityProvider from aws-amplify npm package. image