Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
armand1m opened this issue Jun 14, 2020 · 0 comments
Open

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

armand1m opened this issue Jun 14, 2020 · 0 comments

Comments

@armand1m
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant