Hello,
I'm trying to create an Appwrite function that takes an email address as input, checks it against a list, and if there's a match, it creates a user and sends them a verification email. The process I follow is:
Create the user using users.create.
Attempt to send a verification email to the newly created user.
Everything works fine up until the point where I try to send the verification email. From my understanding, Appwrite recently introduced the users.createToken(UserId) method to allow server-side actions on users. I’ve also tried using users.createJWT(UserId) to generate a token, but I still can’t get the createVerification method to work at the end of my function.
Could someone guide me on how the correct workflow should look?
When I use the client SDK from npm (appwrite), I get a "fetch is not defined" error. When I try the node-appwrite server-side SDK, I can't get createVerification to run without a session, which I don’t have.
Any advice or tips on how to resolve this issue would be greatly appreciated.
Thanks in advance!
Recommended threads
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...