-
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
Documentation update: add documentation showing how to configure a cognito password policy in Amplify.configure
#13856
Comments
Hi @jackirvine97 Amplify JS v6 now accepts password format fields by calling Amplify.configure(
{
Auth: {
Cognito: {
userPoolClientId: "YOUR_USER_POOL_CLIENT_ID",
userPoolId: "YOUR_USER_POOL_ID",
passwordFormat: {
minLength: 8,
requireLowercase: true,
requireNumbers: true,
requireUppercase: true,
requireSpecialCharacters: true,
},
},
},
},
); Can you confirm whether this fulfills your request? |
Awesome - this ticket is related to the documentation. The docs (when I made this ticket) had no mention of how configure password policy and i thought it should be added given how common a pattern it is. Do the V6 docs now mention it? |
@jackirvine97 we have section our doc now on how to do this with Amplify backend. Also, how to configre Auth resource without amplify backend here which talks about password policy overrides. If this satisfies the ask, can we close this issue? |
Closing this issue as we have not heard back from you. If you are still experiencing this, please feel free to reply back and provide any information previously requested and we'd be happy to re-open the issue. Thank you! |
On which framework/platform would you like to see this feature implemented?
React, Angular
Which UI component is this feature-request for?
Authenticator
Please describe your feature-request in detail.
A cognito password policy can be added to an
Amplify.configure()
call as follow:This automatically passes your password policy to a the password input field in the
Authenticator
component.The problem - this straightforward pattern is not mentioned in the documentation!
Please describe a solution you'd like.
Please add a reference to this in the documentation!
We love contributors! Is this something you'd be interested in working on?
The text was updated successfully, but these errors were encountered: