auth0.js
auth0.js copied to clipboard
feat: Improve error handling when login fails after signup
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: trueflag on the error object. - Kept the original login error text for debugging.