Back

best way to store userData

  • 0
  • Accounts
  • Web
mckoda09
3 Feb, 2024, 13:55

how can I store userData? it seems that I need a collection which stores userData by user's id but how can I automatically create a document for user? how can I forbid client from modifying user's data? I want be able to modify it only from cloud function

TL;DR
Question: How can I store userData in SvelteKit and prevent the client from modifying it? Solution: You can create a collection to store userData using the user's id. To automatically create a document for a user, you can use a cloud function triggered upon user creation. To prevent the client from modifying user data, you can implement security rules that only allow modifications from cloud functions.
mckoda09
3 Feb, 2024, 13:56

using sveltekit*

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