I have 2nd question for you.
I make a website in JS based on Firebase database. One piece of my code creates a point system. With function "set" code creates row "points" in database which contains number of gotten points (default 0). I want to increase number of them by 1 when user did "some action". In database rules I put a line which allows adding and getting values from "points" only to authorised accounts.
Well..
what would happen if somebody copied the code from me, changed adding-1-point code to adding-2000-points code and pasted it just after authorisation. Then he'll open the site on his localhost, authorise with his email and pw... Or he'll even make a Browser extension with that code. Would he get 2000 points more???
So how to fix that, hide or sth. I wonder for so long and i cannot find the answer. In MySQL it was more simple.