I sign in, it automatically signs out

I just created an app and downloaded it on mobile. I signed in and closed everything in the cache I opened it a few hours later, it signed out.