auth0.js icon indicating copy to clipboard operation
auth0.js copied to clipboard

feat: Improve error handling when login fails after signup

Open amitsingh05667 opened this issue 2 months ago • 0 comments


Problem

When signupAndLogin creates the account but the automatic login fails, the user only sees the login error (“Wrong email or password”).

They don’t know the signup actually succeeded, so they try again and immediately hit “user already exists”. This creates a bad loop.


What I changed

  • Added a clearer error message explaining that signup worked but login failed.
  • Added a new signupSucceeded: true flag on the error object.
  • Kept the original login error text for debugging.

amitsingh05667 avatar Dec 10 '25 16:12 amitsingh05667