Feature: Access to User Email on Failed Login When Using React SDK
Description: When using the React SDK for authentication with Auth0, it is currently not possible to access a user’s email on a failed login attempt. For example, if a user encounters the error “client requires organization membership, but user does not belong to any organization”, the email associated with the login attempt is not provided in the error payload or accessible via the SDK.
This limitation makes it difficult to handle workflows that depend on identifying users who attempted to log in but failed.
Use-case: We are building an application that uses organization-based access. Often, users attempt to log in without being part of an organization or miss an invitation. Without access to the email from the failed login attempt, we cannot verify whether the user has been invited or provide clear guidance on what action to take next.
This feature would allow us to verify if the user has a pending invite and guide them appropriately.