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

Revises signInWithEmailAndPassword to return an either with the error or user credential #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

robmagary
Copy link

I'm not sure how you'd like to design the API for this package, but I'm happy to contribute and follow your lead. I come from an Elm background in FP so let me know if I can make this more Pusescripty.

Some things I'd like to improve upon/discuss in this include:

  • The String -> String part of the signature: Is it worth making a type for the email to battle passing the arguments in the wrong order?
  • The Error type being returned: Should it be customized to account for Firebase's "auth/invalid-credential" case?
  • There are no tests. Is it worth creating them?

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

Successfully merging this pull request may close these issues.

1 participant