Hello, i’m trying to query all the user information when the user is logged in. (User test@gmail.com logs in, then through a React component retrieve all the CL information of the document in which the email is test@gmail.com)
I know there is an app called SafeData which acts as a middleware in order to query the information, but the problem with this app is that it also enables an endpoint for the user to patch his own document and control the value of every field.
Since some of the user fields are used as clusters (for example: userLevel, userPoints), i don’t want the user to be able to modify those fields.
Is there any alternative to query user information without SafeData or a way to use SafeData and disabling the permission to patch his own document?
Thanks in advance!