Skip to content

Persistence is not loaded in the right time #62

Description

@JCKodel

While using the official Firebase Auth, FirebaseAuth.instance.currentUser is always filled with the current user (loaded from storage when there was a previously authenticated user), then, it invokes authStateChanges passing the same user.

This lib starts with FirebaseAuth.instance.currentUser always as null. If there was a persisted user before, it's possible to fetch it only in authStateChanges stream.

In other words: FirebaseAuth.instance.currentUser should have a loaded user (from persistent storage), even if we don't subscribe to any streams.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions