Home Read Write Permission Denied Firebase
Reply: 1

Read Write Permission Denied Firebase

iitum studant
iitum studant Published in 2016-05-02 10:49:56Z

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.

André Kool
André Kool Reply to 2016-05-02 13:49:24Z

As you stated in your question your default session length is 24 hours. This means after those 24 hours the session expires and the user has to login again.

To prevent this you can change the default session length in your firebase dashboard.

Also take a look at the documentation.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.308182 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO