When using HoC and listening on auth event using Hub in a parent component and using withAuthenticator to sign up a new user, I get an error saying the user already exists, but it doesn't. In fact, the user get created.
Here is the response object from Hub auth event :
Right, so after looking into this, I figured that the Domain name was not configured. The confirmation email was never sent.
The error provided is a bit misleading.
Closing the issue.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
When using HoC and listening on auth event using Hub in a parent component and using withAuthenticator to sign up a new user, I get an error saying the user already exists, but it doesn't. In fact, the user get created.
Here is the response object from Hub auth event :
Expected behavior
Create a user with a success message or at least not an error message
Reproduction steps
create a simple react app with a withAuthenticator component. I updated amplify to the latest version (5.3.0)
Code Snippet
Component Dashboard is exported as such
authTheme is as following:
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
Before we check that the user doesn't exist
Then we proceed to use the withAuthenticator HoC on a component. In my case, I had some custom styling. https://user-images.githubusercontent.com/59520706/128574461-6d7a39fe-46d0-4e37-b885-39f8329294d1.mov
Here is the result. In the video, we can see the error thrown by Hub