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...
Summary
The user is experiencing difficulties with the Email Verification Server API. They suggest implementing restrictions based on verification status instead of disallowing session creation. They also recommend having an option to specify if verification is required during account creation. The user suggests logging in the user from the client-side and creating a JWT for email verification from a cloud function. They mention that creating a session from the server-side is not possible due to a cookies header issue. The user is requesting help with creating email verification using a Function/event and sending it to the registered user's email. The solution is to log the user in from the client-side, create a JWT for server
safwan
Sep 9, 2023, 06:44
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.
Elie Waked
Rank 2: Process
Sep 9, 2023, 06:53
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
Elie Waked
Rank 2: Process
Sep 9, 2023, 13:34
can not be done due to cookies header being lost............
safwan
Sep 9, 2023, 13:45
You cannot create a session from the server-side
safwan
Sep 9, 2023, 13:46
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