Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we have a same login email for 2 diff userType? #13346

Closed
yashBrahma opened this issue Oct 19, 2023 · 3 comments
Closed

Can we have a same login email for 2 diff userType? #13346

yashBrahma opened this issue Oct 19, 2023 · 3 comments
Labels
auth Issues tied to the auth category of the CLI pending-response Issue is pending response from the issue author pending-triage Issue is pending triage question General question

Comments

@yashBrahma
Copy link

yashBrahma commented Oct 19, 2023

Amplify CLI Version

12.0.3

Question

We have 2 diff userType "producer" and "consumer". Where if user signs up with the email "[email protected] " as producer we assign custom:userType attribute as "producer".

Now same user wants to sign up as a consumer with the same email "[email protected] " but the user already exists in the Cognito pool with userType as "producer".

So is there any solution for this? Where user can use the same email for both userType.

Configuration -
Cognito user pool sign-in options -
User name
Email
Phone number

@yashBrahma yashBrahma added pending-triage Issue is pending triage question General question labels Oct 19, 2023
@ykethan
Copy link
Member

ykethan commented Oct 19, 2023

Hey @yashBrahma, thank you for reaching out. we can utilize email alias,
for example, [email protected] and [email protected]. Cognito will treat these as separate emails on user signup.

Additionally, we can utilize username as signup mechanism, where for example we can create different usernames that are tied to the same email address and can add multiple emails as well.
producer123 with email [email protected] as "producer"
consumer123 with email [email protected] as "consumer"

@ykethan ykethan added auth Issues tied to the auth category of the CLI pending-response Issue is pending response from the issue author labels Oct 19, 2023
@ykethan
Copy link
Member

ykethan commented Dec 13, 2023

Closing the issue due to inactivity. please feel free in reaching out to us, we would be happy in diving deeper.

@ykethan ykethan closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2023
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues tied to the auth category of the CLI pending-response Issue is pending response from the issue author pending-triage Issue is pending triage question General question
Projects
None yet
Development

No branches or pull requests

2 participants