Skip to content

[WIP] Release: v2.0.0 - Hooks based API #84

@armand1m

Description

@armand1m

Context

This library is already almost 2 years old. There is a lot of people who come to this as an easy way out to set up firebase authentication in react applications since it aims to be very straightforward, and I'd say it achieves the goal well.

Yet, I'm not completely happy with the current Higher Order Function design, and I feel like the current API offering static implementations of authentication methods creates a sort of vendor lock-in to this library, which I don't appreciate and feel like we could offer something more flexible instead.

Proposal

First: a Hooks based API.

Most folks that come to use this library want to just have it managing the state regarding firebase authentication and ease to just hook firebase.auth() into a component and have methods ready to go.

The very same experience could be given through a useFirebaseAuth() hook.

(more details to come)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions