Heyo! When creating a user from the client, it currently wants the user ID to use from the client. I don't think I need to explain why this is maybe a bad idea (Don't let the client do literally anything that's not needed.) Is there anyway I can leave AppWrite to do the generating?
import ID.unique() and use that for the user id.
Well yeah, but I want that to happen on the AppWrite server instead of on the client
pass the literal string "unique()"
This actually generates the ID client-side now
Gotcha, thank you
but, then again, they could not pass that string and pass whatever they want instead.
If you really care about it, don't call createDocument() client-side. Expose a function, instead
This is mostly just to stop people who have no idea what they're doing from poking at my code, not really a security measure lol
so what's the problem with using ID.unique()?
It's not really per say a problem, I've just watched way too many people go to the network tab, spot that it's sending the ID to be created and leaving creative messages in there, only to request support 5 seconds later. This won't stop them, but it'll hopefully less annoying.
Recommended threads
- Hi Appwrite Support Team,My project has ...
Details: Project ID: 69a69f6f00113ed0e8e4 Region: SFO (sfo.cloud.appwrite.io) Error Response: Affected: ALL endpoints — Functions, Databases, Storage, Health, ...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...