You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want my web front-end to validate the password before calling an Auth.signup(...) method, so that I can verify that the password that the user types is satisfying the AWS Cognito User Pool's policy.
Is there a way for generating a password-checker derived from AWS Cognito User Pool Policy (i.e. require number, require special chaarcter etc.) for Javascript?
The text was updated successfully, but these errors were encountered:
Currently there is no way, that I know of, to do what you want. It is a very interesting use case that I'll make sure to share with the team!
This would require knowing in your front-end the current password policy, and verify according to it.
If this is a problem you would like to tackle yourself, you could start by looking at the Amazon Cognito API reference, specifically the DescribeUserPool operation. It gives you access to the Password policy for your user pool. maybe you could call this operation at build time, save the policy as a json that you can include in your front-end code and verify at runtime.
I want my web front-end to validate the password before calling an
Auth.signup(...)
method, so that I can verify that the password that the user types is satisfying the AWS Cognito User Pool's policy.Is there a way for generating a password-checker derived from AWS Cognito User Pool Policy (i.e. require number, require special chaarcter etc.) for Javascript?
The text was updated successfully, but these errors were encountered: