I explored how auth0 actions work. At the moment the only parameters which can be accessed on user object are user and app metadata.
I would like to put a logic in pre-registration of the user. If the user metadata contains the field “invited: true”, I want to set email_verified true to avoid sending mails to users with this metadata.
In my application when a user registers following a custom link I’m sure that the email is verified therefore I want to avoid sending verification emails for these users.
To create users I’m using WebAuth library (JSDoc: Class: WebAuth), there is not possible to set verify_email. There is something I’m missing or I have to use ayh0 apis directly?
You will need to use the Management API’s Create a user endpoint to create the user with the verify_email: false property.
In summary, I recommend creating the users whose user_metadata "invited: true" to also have "verify_email: false". This way, it prevents sending the verification email to the newly created users.