-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preferred_username is required but cant be set during registration. #13724
Comments
Hello @daskabe. This seems to be a Cognito bug. You are right, the creation of the userpool should fail when You would need to create another userpool without the |
thats what i ended up doing to move forward with my development - created another userpool - But now my users cant sign in using their username. Currently just using email. I didn't bather setting preferred_username ; instead i saved the username to And how/why is account confirmation status related to a preferred_username? preferred_username is just attribute and does not need confirmation. This is what i would want to see.
Cognito signIn(...) process should parse and validate the provided username - (one of email || phone || userHandle) and then perform login action...no need to force user to select the preferred way. Imagine having your email as preferred way but then you lose your email...how do you login and change your preference? Ideally i should be able to login with all my 3 options anytime (the userPool is configured to accept all 3) |
@daskabe, closing this issue as it will be captured as a docs improvement in the above referenced |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
CDK
Environment information
Describe the bug
preferred_username should not be a Required attribute IF it cant be set during user sign up flow.
Expected behavior
preferred_username should not be required field. if it is - it should be settable during signup.
the above code gives this error:
Reproduction steps
Create a userpool with preferred_username as required field and then try to create a user.
If this is system limitation then userpool creation should fail if preferred_username is set as required field.
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
The text was updated successfully, but these errors were encountered: