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
- Paused project can't activate
I have failed to reactivate one my projects which had been paused
- Site deployment keeps getting failed
Hi good folks, need a hand with Sites deploy Error on every deploy: Synchronous function execution timed out... duration doesn't exceed 30 seconds [exact log ...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...