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

Commit 633e9ab

Browse files
author
Jacob Wenger
authored
Fix typo in API ref (s/signInWithCredentials/signInWithCredential) (#812)
1 parent 680cd87 commit 633e9ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/reference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* [`$signInWithEmailAndPassword(email, password)`](#signinwithemailandpasswordemail-password)
3030
* [`$signInWithPopup(provider)`](#signinwithpopupprovider)
3131
* [`$signInWithRedirect(provider[, options])`](#signinwithredirectprovider-options)
32-
* [`$signInWithCredentials(credentials)`](#signinwithcredentialscredentials)
32+
* [`$signInWithCredential(credential)`](#signinwithcredentialcredential)
3333
* [`$getAuth()`](#getauth)
3434
* [`$onAuthStateChanged(callback[, context])`](#onauthstatechangedcallback-context)
3535
* [`$signOut()`](#signout)
@@ -679,13 +679,13 @@ Firebase currently supports Facebook, GitHub, Google, and Twitter authentication
679679
[authentication documentation](https://firebase.google.com/docs/auth/)
680680
for information about configuring each provider.
681681

682-
### $signInWithCredentials(credentials)
682+
### $signInWithCredential(credential)
683683

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()`;
686686

687687
```js
688-
$scope.authObj.$signInWithCredentials(credentials).then(function(firebaseUser) {
688+
$scope.authObj.$signInWithCredential(credential).then(function(firebaseUser) {
689689
console.log("Signed in as:", firebaseUser.uid);
690690
}).catch(function(error) {
691691
console.error("Authentication failed:", error);

0 commit comments

Comments
 (0)