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
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...
- how can i make a relationship between a ...
i want to relate the $id from users auth table in appwrite with other column in my table user_profile. because is the same user... how can i have exactly the s...