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

codergurl

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?

codergurl

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

AWS Cognito Amplify Authentication and Angular UI Components

Custom Authentication flow with aws amplify cognito

AWS Cognito Identity Pool: How to check if email attribute is verified or not

AWS Cognito - User stuck in CONFIRMED and email_verified = false

AWS-Amplify with Cognito

AWS Amplify Authentication

AWS Amplify: How to map social providers attributes for an email based authentication?

AWS SES Email not verified with Laravel

AWS API gateway authentication without using Cognito

Login with adminInitiateAuth using email and password in AWS Cognito

How to authenticate users with Aws Cognito and Aws Amplify

Node js microseervices with aws cognito using amplify best practice

Authenticating a REST API with Cognito using AWS Amplify & Android

Security token is invalid when calling API using AWS Amplify & Cognito

How to connect to AWS AppSync using Cognito Identity Pools and Amplify

User Pool’s Attributes disabled with AWS Amplify Authentication module

Authentication with Lambda and AWS Cognito

AWS Cognito Authentication in Reactjs

AWS Cognito HTTP authentication

AWS Cognito User Authentication

AWS Cognito - Users lost "non-mutable" attribute "email_verified"

"email" vs "Email" in AWS Cognito

not understanding AWS Amplify authentication flow

PrivateRoute functional component using aws-amplify as authentication

AWS Amplify + Cognito: Create account without username/Use email instead of username?

NextJS Amplify auth cognito not authenticated on server aws

Unable to send mail on AWS SES, email not verified

Firebase authentication vs AWS Cognito

AWS Cognito authentication with Bearer token