Skip to content
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

Customize error message for expired password #279

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jue-henry
Copy link
Contributor

Adding custom error message for when users try to login with an expired password

@jue-henry jue-henry self-assigned this Jan 15, 2025
const { username, password } = input;
return await Auth.signIn(username, password);
} catch (error) {
console.log(error.code);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still trying to figure out the corresponding error code for an expired password. Unsure how to trigger this until I use an expired temp password that I have ready on Friday(1/17)

Seems unclear from this list: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html#API_InitiateAuth_Errors

Copy link
Contributor Author

@jue-henry jue-henry Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be UserNotConfirmedException but will confirm

@jue-henry jue-henry marked this pull request as ready for review January 16, 2025 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant