|
29 | 29 | * [`$signInWithEmailAndPassword(email, password)`](#signinwithemailandpasswordemail-password) |
30 | 30 | * [`$signInWithPopup(provider)`](#signinwithpopupprovider) |
31 | 31 | * [`$signInWithRedirect(provider[, options])`](#signinwithredirectprovider-options) |
32 | | - * [`$signInWithCredentials(credentials)`](#signinwithcredentialscredentials) |
| 32 | + * [`$signInWithCredential(credential)`](#signinwithcredentialcredential) |
33 | 33 | * [`$getAuth()`](#getauth) |
34 | 34 | * [`$onAuthStateChanged(callback[, context])`](#onauthstatechangedcallback-context) |
35 | 35 | * [`$signOut()`](#signout) |
@@ -679,13 +679,13 @@ Firebase currently supports Facebook, GitHub, Google, and Twitter authentication |
679 | 679 | [authentication documentation](https://firebase.google.com/docs/auth/) |
680 | 680 | for information about configuring each provider. |
681 | 681 |
|
682 | | -### $signInWithCredentials(credentials) |
| 682 | +### $signInWithCredential(credential) |
683 | 683 |
|
684 | | -Authenticates the client using credentials (potentially created from OAuth Tokens). This function takes one |
685 | | -arguments: the credentials object. This may be obtained from individual auth providers under `firebase.auth()`; |
| 684 | +Authenticates the client using a credential (potentially created from OAuth Tokens). This function takes one |
| 685 | +arguments: the credential object. This may be obtained from individual auth providers under `firebase.auth()`; |
686 | 686 |
|
687 | 687 | ```js |
688 | | -$scope.authObj.$signInWithCredentials(credentials).then(function(firebaseUser) { |
| 688 | +$scope.authObj.$signInWithCredential(credential).then(function(firebaseUser) { |
689 | 689 | console.log("Signed in as:", firebaseUser.uid); |
690 | 690 | }).catch(function(error) { |
691 | 691 | console.error("Authentication failed:", error); |
|
0 commit comments