Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if user is confirmed in AWS Amplify?

I have a check to see if the user is already in the DB, which is if (e.name === 'UsernameExistsException') {...

I tried this check to see if it would return true or false, but no luck: console.log(await Auth.verifiedContact(this.state.email));

How can I check if that user is confirmed or not?

like image 455
Ralph David Abernathy Avatar asked May 17 '18 17:05

Ralph David Abernathy


People also ask

How do I verify a Cognito user?

When a user updates their email address or phone number in your app, Amazon Cognito immediately sends a message with a verification code to a user if you configured your user pool to automatically verify that attribute. The user must then provide the code from the verification message to your app.

How do I add users to AWS amplify?

Sign in to the AWS Management Console and open AWS Amplify. In the navigation pane, choose Amplify Studio settings. On the Amplify Studio settings page, in the Access control settings section, choose Add team members. For Email, enter the email address of the team member to invite.

How do you get user attributes AWS amplify?

To configure and enable standard user attributes in your app, you can run the Amplify update auth command and choose Walkthrough all the auth configurations. When prompted for Specify read attributes and Specify write attributes, choose the attributes you'd like to enable in your app.

Where does amplify store credentials?

Access and Logging in via Amplify CLI Using amplify configure , you could setup access key id, and secret access key. These credentials would be stored under a profile name (usually default ).


1 Answers

Looks like I figured it out within minutes after posting the question. Here is the check I could use for a user not being confirmed:

if (e.name === 'UserNotConfirmedException)'

like image 155
Ralph David Abernathy Avatar answered Oct 04 '22 18:10

Ralph David Abernathy