Closed desert-digital closed 1 month ago
hey,👋 thanks for raising this! I'm going to transfer this over to our JS repository for better assistance 🙂
Hello, @desert-digital 👋. Are you able to share what's in your package.json
file so we can see your dependencies? Also, it looks like you're using an improper import for v6. Can you change your import for Amplify to be the following:
import { Amplify } from 'aws-amplify';
Instead of:
import { Amplify } from '@aws-amplify/core';
There's potentially more updates you'll want to consider that are detailed in the migration guide for Auth as well. Let us know if making these changes helps resolve any issues!
Hi Chris:
Thanks for the quick reply. That did the trick. I'm not sure where I picked up that syntax, but I'm glad I included it!
Glad to hear it, @desert-digital! If you have any other blockers, feel free to open a new issue. I'll close the issue out as resolved then.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20.10.0
Amplify CLI Version
12.12.0
What operating system are you using?
Mac OS Venture 12.7.4
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
None
Describe the bug
Recently upgraded from v5 to v6.
A call to signUp results in a new user being created. A call to signIn results in an exception: AuthUserPoolException
Changed the main.ts call to use the amplifyconfiguration.json file.
The amplifyconfiguration.json file has the required information (it appears):
Expected behavior
call to signIn with a user should result in successful login
Reproduction steps
Please see above.
Call to signUp:
Call to signIn:
Project Identifier
b4b01341933ab2fb102d890fe649cf95
Log output
Additional information
None
Before submitting, please confirm: