Skip to content

feat(signUp_verification_status): Sign up email/phone verification status fix #386

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

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

Conversation

paullallier
Copy link
Contributor

When a user has an unverified email address or phone number allocated at signUp, real Cognito returns user attributes for email_verified = false and phone_number_verifed = false when doing a getUserByUsername. When they don't have an email - the email_verified is not set either. Similar for no phone number. Cognito-local only returns the verification status once it's true.

I've partially implemented that, since I needed it. It only works for users signed up with the email address as the primary identifier (I don't think cognito-local supports phone number only signups anyway?).

It's a bit hacky - I struggled to understand how the signup without pre-signup lambda was supposed to work - so it might need a bit of tidying up. But i works for me now.

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