Description
I'd like to be able to expose a SignUp form (and corresponding ConfirmSignUp) that shows only email address, not username. Unfortunately the Mobile Hub project creation doesn't fully support this (it creates a user pool with a type that still requires a username), but we could SHA-2 hash the email address in place of the username and then rely on the "alternative sign in" support for email address in the SignIn form.
The same support goes for phone number in place of email address.
The withAuthenticator HOC could take a props
argument with a usernameTypes
property that would be an array of enums (values: email
, phoneNumber
, username
); this could then be used by all applicable auth components (SignUp, ConfirmSignUp, SignIn, ForgotPassword) for both display and data processing.
I'm immediately focused on the aws-amplify-react-native
project and could take a pass at implementing it - but support in aws-amplify-react
project would be necessary too.