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
질문됨 4년 전377회 조회
1개 답변
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
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠