This commit is contained in:
Salakar 2017-03-22 18:50:05 +00:00
commit dfa72c03f9
1 changed files with 7 additions and 5 deletions

View File

@ -100,7 +100,7 @@ Sign in the user with a 3rd party credential provider. `credential` requires the
```javascript ```javascript
const credential = { const credential = {
provider: 'facebook.com', provider: 'facebook',
token: '12345', token: '12345',
secret: '6789', secret: '6789',
}; };
@ -210,7 +210,7 @@ Reauthenticate the current user with credentials:
```javascript ```javascript
const credentials = { const credentials = {
provider: 'facebook.com', provider: 'facebook',
token: '12345', token: '12345',
secret: '6789', secret: '6789',
}; };
@ -248,7 +248,8 @@ firebase.auth().currentUser
Updates the user's email address. See Firebase docs for more information on security & email validation. This will Promise reject is the user is anonymous. Updates the user's email address. See Firebase docs for more information on security & email validation. This will Promise reject is the user is anonymous.
```javascript ```javascript
firebase.auth().updateUserEmail('foo@bar.com') firebase.auth().currentUser
.updateEmail('foo@bar.com')
.then() .then()
.catch(); .catch();
``` ```
@ -258,7 +259,8 @@ firebase.auth().updateUserEmail('foo@bar.com')
Important: this is a security sensitive operation that requires the user to have recently signed in. If this requirement isn't met, ask the user to authenticate again and then call firebase.User#reauthenticate. This will Promise reject is the user is anonymous. Important: this is a security sensitive operation that requires the user to have recently signed in. If this requirement isn't met, ask the user to authenticate again and then call firebase.User#reauthenticate. This will Promise reject is the user is anonymous.
```javascript ```javascript
firebase.auth().updatePassword('foobar1234') firebase.auth().currentUser
.updatePassword('foobar1234')
.then() .then()
.catch(); .catch();
``` ```
@ -275,7 +277,7 @@ Updates a user's profile data. Profile data should be an object of fields to upd
``` ```
```javascript ```javascript
firebase.auth() firebase.auth().currentUser
.updateProfile({ .updateProfile({
displayName: 'Ari Lerner' displayName: 'Ari Lerner'
}) })