This repository was archived by the owner on Feb 24, 2018. It is now read-only.
This repository was archived by the owner on Feb 24, 2018. It is now read-only.
confirmRegistration isn't compatible with e-mail aliases #277
Open
Description
I created a user pool using the e-mail as an alias and an automatically generate user name. The user is to never see their user name and only log in with their e-mail address. When attempting to call confirmRegistration, it fails since the true username is not known in order to construct the CognitoUser object.
It should be possible to construct a CognitoUser object using only the aliased e-mail address and perform confirmation with that object.
We need to use e-mail addresses as aliases, because these are corporate accounts where the employee managing the account may change, thus the e-mail address must be changeable while keeping the same sub.