Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* [`$signInWithEmailAndPassword(email, password)`](#signinwithemailandpasswordemail-password)
* [`$signInWithPopup(provider)`](#signinwithpopupprovider)
* [`$signInWithRedirect(provider[, options])`](#signinwithredirectprovider-options)
* [`$signInWithCredentials(credentials)`](#signinwithcredentialscredentials)
* [`$signInWithCredential(credential)`](#signinwithcredentialcredential)
* [`$getAuth()`](#getauth)
* [`$onAuthStateChanged(callback[, context])`](#onauthstatechangedcallback-context)
* [`$signOut()`](#signout)
Expand Down Expand Up @@ -679,13 +679,13 @@ Firebase currently supports Facebook, GitHub, Google, and Twitter authentication
[authentication documentation](https://firebase.google.com/docs/auth/)
for information about configuring each provider.

### $signInWithCredentials(credentials)
### $signInWithCredential(credential)

Authenticates the client using credentials (potentially created from OAuth Tokens). This function takes one
arguments: the credentials object. This may be obtained from individual auth providers under `firebase.auth()`;
Authenticates the client using a credential (potentially created from OAuth Tokens). This function takes one
arguments: the credential object. This may be obtained from individual auth providers under `firebase.auth()`;

```js
$scope.authObj.$signInWithCredentials(credentials).then(function(firebaseUser) {
$scope.authObj.$signInWithCredential(credential).then(function(firebaseUser) {
console.log("Signed in as:", firebaseUser.uid);
}).catch(function(error) {
console.error("Authentication failed:", error);
Expand Down