Skip to content

Equivalent of getAuth() #12

@Bekt

Description

@Bekt

firebase v2 has the Firebase.getAuth() that synchronously retrieves the current user.

firebase v3 has no longer has that method, but comes with firebase.auth().currentUser which is not synchronous (it is null on page load). This makes it hard to perform logic on page load -- do I redirect the user to the login page, or is the user is actually logged in?

What is the equivalent of synchronous getAuth() in v3?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions