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
- 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...
- SyntaxError: Unexpected end of JSON inpu...
I am trying to create a fcm push notification service using appwrite functions with its REST API to invoke that function from my client side app and getting thi...
- Experiencing inconsistent "500 general_u...
I am developing a task management app that uses Appwrite auth. My project is hosted on Appwrite cloud and I've created basic server-side authentication followin...