And also is there any suggestions on using the sessions storage for detecting the login status. I have used this because the website gets reloaded frequently.
My main problem is that I want the data inside the Realtime database to only be readable and writable by the authenticated users who login through the authentication.
The rules of Realtime Database are:-
I have tried everything which they have inside the documentation of firebase but nothing is working.