aws-samples / aws-samples/amplify-vite-react-template

Cannot get loginwith

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
109
Forks
261
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/c4fe2528-e9d9-4b91-9979-59e0ac268b15)

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](https://github.com/user-attachments/assets/c0d3ae12-84c5-4bd3-b5d8-6f04aab73da2)

Contributor guide

Open the contributing guide

Research direction

Start by checking the repository's dependency version and the Amplify.configure Auth settings shown in the issue. Then compare the available package exports with the authentication API expected by that version. Done means the login flow and CognitoHostedUIIdentityProvider usage are clarified for this template.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, react, typescript, vite
Domain
authentication, cloud, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.