
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
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
- Unable to View / Edit Bucket Files
Hi! I am unable to view / edit Bucket Files. While Previews work just fine, clicking the actual file to view or edit it produces the errors seen in the attache...
- How to remove the Sign up link after cre...
Greetings, i just installed appwrite on a VPS and created an account but now i do not want others to have access to the sign-up page. Is there any way to hide o...
