I need using Function/event(@userCreate) send an email verification to the registered user's email. the only way is to allow the user to login and push his email verification from the client side using JS-sdk.
Please advise if there is any work around i missed in the documentation...
- You will have to log the user in from the client-side
- Once that's done, you can create a JWT to authenticate on the server-side and perform actions on behalf of the user. Docs for JWT
- You can then call the Create Email Verification with the JWT that was generated to start the email verification flow.
thanks for your response I think i wil let the function Create User 1- create the user 2- login with the user credentials 3- request validation I need the websdk and the node sdk at the same time installled I will test it
can not be done due to cookies header being lost............
You cannot create a session from the server-side
You need to login the user from the client-side, and then create a JWT. Then use this JWT to create email verification from the cloud function
you might want to ππΌ this issue: https://github.com/appwrite/appwrite/issues/3891
for now, i recommend doing all this stuff client side
thanks a lot! in fact as admin server side access i am expecting to be able everything in the client side plus more admin features
I beleive the create session should have the option to reject the authentication if account is not verified
and on account create an option where we can specify if the verification is required
the way we do in appwrite is to restrict access to resources based on verification status rather than not allowing creating a session
i hope this will be included in the future
i understand that
Recommended threads
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...