I am creating new users via the management API and on creation they are being sent a verification email which is great, however whenever a user clicks on the link on one of these emails they get an error page saying “Your email address could not be verified” despite this the email_verified flag does seem to be updated to true. Cant seem to find anything in the logs, would prefer the users of our system didnt see the failure message, keen to try and work out why they are getting it, any thoughts,
I’ve never been able to reproduce it myself, but we’re currently onboarding about 40 test users to a new app using Auth0 and I’ve got a handful of reports saying the same thing. And as far as I know they’ve all actually been verified despite this error from Auth0. Pretty weird
Nevertheless on their user object user.email_verified is getting set to true and they can start using the system.
If I create a user through our regular registration workflow (using Lock), email verification link works and correctly redirects to our {{ application.callback_domain }}/login page.
Solved it! In Redirect To field for Verification Email just put the actual value for application.callback_domain, instead of {{ application.callback_domain }}: e.g. https://mywebsite.com/login instead of {{ application.callback_domain }}/login.
Verification emails sent from auth0 dashboard or via Management API seem to have a problem when Redirect To is accessing a variable (I tried both application.callback_domain and client.callback_domain - neither worked).
Hope this helps someone!
Cheers