Skip to content

cognito pre-signup

0

Hello

I try to put a condition to only allow email addresses from my own domain to sign up for the cognito user pool. I tried the pre-signup trigger and a lambda function to check the information passed;however I was able to automatically confirm users with email addresses from my own domain but other domain email addresses were still accepted as unconfirmed.
Is there a way to stop the processes if the email provided is from a different domain?

thanks
RT

asked 6 years ago711 views

1 Answer
0

I found out what i needed.
On the else section of my code when the domain does not match, I needed to return the callback with the error.

answered 6 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.