Skip to content

Commit

Permalink
Fixed docs on how to use GoogleAuthProvider (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
idanen authored and Jacob Wenger committed Jun 9, 2016
1 parent e36e652 commit a736588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,12 +635,12 @@ for more details about email / password authentication.
Authenticates the client using a popup-based OAuth flow. This function takes two
arguments: the unique string identifying the OAuth provider to authenticate with (e.g. `"google"`).

Optionally, you can pass a provider object (like `new firebase.auth().GoogleProvider()`, etc)
Optionally, you can pass a provider object (like `new firebase.auth.GoogleAuthProvider()`, etc)
which can be configured with additional options.

```js
$scope.authObj.$signInWithPopup("google").then(function(firebaseUser) {
console.log("Signed in as:", firebaseUser.uid);
$scope.authObj.$signInWithPopup("google").then(function(result) {
console.log("Signed in as:", result.user.uid);
}).catch(function(error) {
console.error("Authentication failed:", error);
});
Expand Down

0 comments on commit a736588

Please sign in to comment.