I am developing an app, I had my security rules setup. I was able to read and write in my firebase ref but today suddenly it's saying permission denied for everything.
".read": "auth != null && auth.uid == $uid",
".write": "auth != null && auth.uid == $uid"
I thought I might have accidentally changed something in the rules but I removed the read write auth and uid check and even then it wasn't working.
I'm guessing it has something to do with login session. How do I know if my session is still active? Because in my activity I can get the auth object and it's not null. It even has uid, token etc etc.
Also, in firebase auth settings, the default session length is 24 hours. Is it also applicable for email login type authentication?
Would I have to make my users login every 24 hours.