Hello everyone.
I am trying to make a function to send user a verification email.
The process to setup the email or creat send grid templates is well documented but I have found absolutly nothing on how to get or build the link I am suppose to pass to the template.
Here is the doc :
I guess I could extrapolate something for the tutorial, at some point i can see the link in the browser…
But it doesnt seem like the propper way to go.
Also found a forum mentionning :
await Moralis.User.requestEmailVerification(email)
But i couldnt make that work (my email config is setup) so it might be outdated :
logger.info(`user email is ${email}`)
await Moralis.User.requestEmailVerification(email)
.then((result) => {
logger.info(`all good ${JSON.stringify(result)}`)
}).catch((err) => {
logger.info(`oh no !!! ${err}`)
});
The email logged is correct, the function goes into the then so no errors but the result is an empty object no email in my inbox (all folders checked)
Any help would be welcome
Thanks