[Cognito] Auto-confirm user AND send verification code
See original GitHub issueWhich Category is your question related to? User attribute verification
What AWS Services are you utilizing? Cognito
Provide additional details
I’ve got a pre-sign up lambda that auto-confirms a user but that does not auto-verify the user’s email. Auto-confirming results in no verification email being sent to the user. From what I can tell, in order for a verification email to be sent in this scenario, the Auth.verifyCurrentUserAttribute
method must be used. I’m wondering if there is a way to have a sign up verification email sent regardless of whether a user has been auto-confirmed. My primary motivation behind this is custom messaging: upon signing up (CustomMessage_SignUp
), a user should receive a welcome email with a verification code in it, but upon requesting a verification code (CustomMessage_VerifyUserAttribute
), a user should receive a verification request email.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:12
- Comments:20 (2 by maintainers)
@Palisand I’m closing this issue due to inactivity. I believe that this is what you would want. You could probably have a single trigger both send the email and mark a user as confirmed.
There is a huge setback with this scenario:
This is not possible since we can’t get the signup custom message trigger to fire after the user is auto-confirmed.