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?
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.
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.
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.
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 ).
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)'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With