Search code examples
firebasefluttergoogle-cloud-firestorequota

Firebase Quota - FirebaseAuth Current User


Does the method call to FirebaseAuth.instance.currentUser count against any quota? Or is this locally maintained?

We are using the flutter plugin and can not determine if this call can be done without increasing any quotas:

await auth.FirebaseAuth.instance.currentUser


Solution

  • Accessing FirebaseAuth.instance.currentUser is nothing more than accessing local state. No call is made for this whatsoever, so it can never hit any quota issues.

    In general determining the current user does not hit any quota'd services that I'm aware of. It's only acts like signing in, verifying passwords/OTPs, etc, that are affected by quota.