Back

How to create a user server-side?

  • 0
  • Accounts
  • Web
battlesheep123
7 Dec, 2023, 21:36

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?

TL;DR
The user wants to know how to create a user server-side using SvelteKit framework without exposing Appwrite details. There is a suggestion to use the server SDK of Appwrite.
Mosh Ontong
8 Dec, 2023, 01:02

You can simply use the server sdk of appwrite

Mosh Ontong
8 Dec, 2023, 01:03

thats what I did in next js

Mosh Ontong
8 Dec, 2023, 01:04

the way how you use cloud function it the same process on server side of next js or svelte

battlesheep123
8 Dec, 2023, 16:28

Is it correct to use the "User" endpoint here?

Mosh Ontong
8 Dec, 2023, 16:45

in server side

Mosh Ontong
8 Dec, 2023, 16:45

yes

battlesheep123
8 Dec, 2023, 17:00

Okay, thanks!

battlesheep123
8 Dec, 2023, 17:01

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?

Mosh Ontong
9 Dec, 2023, 02:15

you cant use server side to create session, unfortunately

battlesheep123
9 Dec, 2023, 15:18

Ohh, that's not good..

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more