Back

Get userId & secret to manually create and send verification email, from within an appwrite function

  • 0
  • Auth
  • Web
  • Functions
discorrrdbomba
1 Sep, 2024, 16:58

1.) I have got an appwrite function triggered by user.created.event, that executes await account.createVerification(verifyUrl); for a given just created user. 2.) This triggers a verification.created.event, which in turn triggers another appwrite function of mine, which should create the verification email out of the returned token and send it alongside with a custom made verification email to the respective user.

How to get the correct and valid userId & secret params - I am talking about the two params which usually get attached to the native verification email sent by appwrite itself (if activated). I want to not use this native service, but instead create a custom made email, sent by my appwrite function triggered by the above mentioned verificationCreate event, but I am struggling getting the correct and valid verification link params to attach to the verification email - any idea....?

TL;DR
Developers want to manually create and send verification emails using Appwrite. They need the correct `userId` and `secret` params usually attached to Appwrite's native verification email. By triggering functions on `verification.created.event`, they hope to achieve this. The challenge lies in obtaining the right verification link params for the custom email.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more