Open Sneha-Syngenta opened 3 days ago
Hi @Sneha-Syngenta thanks for raising the issue, Could you please try double check the following
Amplify.configure
is called at the root of your app (example index.js) so this gets configured first and then the signIn api gets called.Amplify.getConfig()
right before calling signIn
to check if the required configuration is presentAmplify.configure
might be called twice and one of the times userPoolId: process.env.REACT_APP_COGNITO_USER_POOL_ID || ''
might result in an empty string Thank you for your response.
I did verified this already, config are getting called with proper values whatever we have defined in amplify.config.
it returns following object:
{
"Auth": {
"Cognito": {
"userPoolId": "app-userPoolId",
"userPoolClientId": "app-userPoolClientId"
}
},
"API": {
"REST": {
"YourAPIName": {
"endpoint": "app-endpoint",
"region": "app-region"
}
}
}
}
But somehow it is giving above error.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication, REST API, GraphQL API
Amplify Version
v6
Amplify Categories
auth, function
Backend
None
Environment information
Describe the bug
At the time of login getting following error.
aws-amplify SignIn call gave error - AuthUserPoolException: Auth UserPool not configured.
Expected behavior
It should successfully do the login.
Reproduction steps
install: "aws-amplify": "^6.6.7",
Code Snippet:
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response