How can I create a user server-side?
I'm using SvelteKit, a full-stack framework which also has a server side.
Since I don't want to expose the Appwrite url, project id, etc... I would like to handle the signup on the server.
How can I do this?
You can simply use the server sdk of appwrite
thats what I did in next js
the way how you use cloud function it the same process on server side of next js or svelte
Is it correct to use the "User" endpoint here?
in server side
yes
Okay, thanks!
But is it even possible to set up the complete authentication only server-side? I mean, how would you create a session (probably a cookie) on the client then?
you cant use server side to create session, unfortunately
Ohh, that's not good..
Recommended threads
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- How to properly implement custom domain?...
- Site deployment does not work.
I can change a file, deploy, change does not take effect. Delete file in repo, push changes,deploy. Old file remains undeleted Duplicate file, rename it, push,...