mckoda09Original post
Web Developer
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
Summary
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.