Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Add more properties and providers to <firebase-auth> #251

@FluorescentHallucinogen

Description

I have 2 ideas (suggestions):

Idea 1

Currently, provider property of <firebase-auth> element is used only for OAuth. Current accepted values are google, facebook, github, twitter.

provider property can remain undefined when attempting to sign in anonymously or using email and password or using phone number.

What about extending the list of accepted values for provider property by adding non-OAuth providers such as anonymous, email and phone for consistency purposes? Something like:

<firebase-auth
  provider="email"
  user="{{user}}">
</firebase-auth>
<firebase-auth
  provider="phone"
  user="{{user}}">
</firebase-auth>

Since <firebase-auth> element is just a wrapper of Firebase Authentication SDK, does adding support of non-OAuth providers values to provider property of <firebase-auth> require changes to the SDK?

Idea 2

createUserWithEmailAndPassword, sendPasswordResetEmail, signInWithEmailAndPassword methods of <firebase-auth> element require email (and password) parameters.

What about adding email and password properties to <firebase-auth> element?

It helps to use data binding to make specifying email and password parameters more easy. Something like:

<gold-email-input
  value="{{email}}">
</gold-email-input>

<paper-input
  type="password"
  value="{{password}}">
</paper-input>

<firebase-auth
  provider="email"
  email="[[email]]"
  password="[[password]]"
  user="{{user}}">
</firebase-auth>

Are these good ideas?

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