Using modalConfig with email_passwordless login method and custom authConnectionId/groupedAuthConnectionId from environment variables.
Analysis & Next Steps
The error Invalid origin (E002) typically means your current domain (in this case, localhost) is not whitelisted for passwordless authentication in your Web3Auth Dashboard project settings.
Double-check that the authConnectionId and groupedAuthConnectionId are correct and correspond to your dashboard configuration.
Please provide a screenshot of your “Whitelisted URLs” in the dashboard if you still see the error after updating.
Let us know if whitelisting your localhost resolves the issue, or if you need further assistance!
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours