Skip to content

Cannot check if email is unconfirmed without password #8585

Open
@opqpop

Description

@opqpop

Before opening, please confirm:

JavaScript Framework

React, Next.js

Amplify APIs

Authentication

Describe the bug

Is there a way to pass ONLY an email and check if that email is confirmed?

I am trying to handle this case:

  • user creates account with email and does not verify, account remains unconfirmed
  • user forgets password and tries to reset password, but cognito doesn't send password code for unconfirmed account
  • I would like to detect if the email is unconfirmed, and tell user to first verify the email before trying to reset the password.

From browsing around, it seems like the only way to check if an email is confirmed is to also have the password to catch the UserNotConfirmedException during sign-in.

Expected behavior

A way to handle above scenario somehow, without confusing user why they aren't getting a reset email for being unconfirmed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthRelated to Auth components/categoryCognitoRelated to cognito issuesService TeamIssues asked to the Service Teamfeature-requestRequest a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions