Email validation on Registration - Code Help

I am trying to work out the code which auto-validates the user using a token after they sign up to my website. I am using the auto email trigger of wix to send the email with the link to verify the user, when the user fills out the form. if anybody could post a working code. I’ve tried using the wix corvid api example idk what im doing wrong. Or if its not working. Could anybody just post theirs.

Thanks

As a wise man once said on this forum: “I can teach you how to fish, but I cannot fish for you.” Soliciting code is not done. But we are glad to help if you post your code, if and when we can locate where it goes wrong.