@@ -307,7 +307,7 @@ function onSetPersistence() {
307
307
function onSignUp ( ) {
308
308
var email = $ ( '#signup-email' ) . val ( ) ;
309
309
var password = $ ( '#signup-password' ) . val ( ) ;
310
- auth . createUserAndRetrieveDataWithEmailAndPassword ( email , password )
310
+ auth . createUserWithEmailAndPassword ( email , password )
311
311
. then ( onAuthUserCredentialSuccess , onAuthError ) ;
312
312
}
313
313
@@ -318,7 +318,7 @@ function onSignUp() {
318
318
function onSignInWithEmailAndPassword ( ) {
319
319
var email = $ ( '#signin-email' ) . val ( ) ;
320
320
var password = $ ( '#signin-password' ) . val ( ) ;
321
- auth . signInAndRetrieveDataWithEmailAndPassword ( email , password )
321
+ auth . signInWithEmailAndPassword ( email , password )
322
322
. then ( onAuthUserCredentialSuccess , onAuthError ) ;
323
323
}
324
324
@@ -374,7 +374,7 @@ function onSignInWithCustomToken(event) {
374
374
// The token can be directly specified on the html element.
375
375
var token = $ ( '#user-custom-token' ) . val ( ) ;
376
376
377
- auth . signInAndRetrieveDataWithCustomToken ( token )
377
+ auth . signInWithCustomToken ( token )
378
378
. then ( onAuthUserCredentialSuccess , onAuthError ) ;
379
379
}
380
380
@@ -383,7 +383,7 @@ function onSignInWithCustomToken(event) {
383
383
* Signs in anonymously.
384
384
*/
385
385
function onSignInAnonymously ( ) {
386
- auth . signInAnonymouslyAndRetrieveData ( )
386
+ auth . signInAnonymously ( )
387
387
. then ( onAuthUserCredentialSuccess , onAuthError ) ;
388
388
}
389
389
0 commit comments