I tried using firebase auth service today and it worked. But after a reload, I use another number, it still worked. It returns an object even if my data is turned off, and the phone number doesn't match my current local state. But it still navigates the user into the app. Also printing that I've exceeded my daily quota, but it still logs them in.
Decided to clear my app storage and start from begining, then an error shows up, saying the object doesn't exist.
CodePudding user response:
Firebase automatically caches data for offline use on mobile. That would explain why clearing your cache loses the data.
However, I strongly suspect you are doing something very wrong. Per the details. I can't help you though without additional info like the specific implementation
CodePudding user response:
As OGB also said: Firebase automatically stores user credentials in local storage, and restores them from there when the app restarts. At that point it tried to re-validates those credentials with a call to the server, and it clears them when the server rejects them (for example of the account was disabled). If the SDK can't reach the server, it assumes that the user is still signed in, until it can check with the server.
It's hard to say more without seeing the API calls you do, and the exact results you get back from them.