Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Cannot actually override provider in login method #39

Open
chimon2000 opened this issue Feb 1, 2015 · 1 comment
Open

Cannot actually override provider in login method #39

chimon2000 opened this issue Feb 1, 2015 · 1 comment

Comments

@chimon2000
Copy link

Taken from the login function definition

Performs a login attempt, using the provider specified via attribute/property, or optionally via provider argument to the login function. Optionally, provider-specific login parameters can be specified via attribute (JSON)/property, or via the params argument to the login function.

I do not see where I am able to pass in the provider, and when specified in the params, it is ignored and the method attempts to login using the original provider.

@VandeurenGlenn
Copy link

Did you try something like this already?

<button on-tap="{{googleLogin}}">Google</button>
<button on-tap="{{githubLogin}}">Github</button>

<script>
  ...
  googleLogin: function() {
      this.$.fbLogin.provider = 'google';
      this.$.fbLogin.login();
  },
  githubLogin: function() {
      this.$.fbLogin.provider = 'github';
      this.$.fbLogin.login();
  },
  ...
</script>

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

No branches or pull requests

2 participants