Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking if email is verified in aws cognito using AWS Amplify Authentication module

I am using the JavaScript AWS Amplify Authentication module. If an existing and confirmed user changes their email address, the user in the cognito user pool is set to not verified and the user is sent a verification code to the new email address. However, I can't find any way with the API to determine if the current user's email is verified or not verified. How can I find out if the user's email address is verified or not via the API?

like image 789
codergurl Avatar asked Dec 22 '25 08:12

codergurl


1 Answers

I figured it out... so for anyone else trying to figure this out:

You need to set the read permissions on the App client to read the Email Verified attribute.

Go to: General settings -> App clients -> Show details -> Set attribute read and write permissions link and check off Readable Attributes: Email Verified

like image 153
codergurl Avatar answered Dec 23 '25 20:12

codergurl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!