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

rtt
asked 4 years ago369 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.

rtt
answered 4 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.

Guidelines for Answering Questions