Skip to content

Commit 2b3b5e6

Browse files
authored
replaced methods that are deprecated with new ones (#1704)
1 parent 4e0348f commit 2b3b5e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/auth/demo/public/script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function onSetPersistence() {
307307
function onSignUp() {
308308
var email = $('#signup-email').val();
309309
var password = $('#signup-password').val();
310-
auth.createUserAndRetrieveDataWithEmailAndPassword(email, password)
310+
auth.createUserWithEmailAndPassword(email, password)
311311
.then(onAuthUserCredentialSuccess, onAuthError);
312312
}
313313

@@ -318,7 +318,7 @@ function onSignUp() {
318318
function onSignInWithEmailAndPassword() {
319319
var email = $('#signin-email').val();
320320
var password = $('#signin-password').val();
321-
auth.signInAndRetrieveDataWithEmailAndPassword(email, password)
321+
auth.signInWithEmailAndPassword(email, password)
322322
.then(onAuthUserCredentialSuccess, onAuthError);
323323
}
324324

@@ -374,7 +374,7 @@ function onSignInWithCustomToken(event) {
374374
// The token can be directly specified on the html element.
375375
var token = $('#user-custom-token').val();
376376

377-
auth.signInAndRetrieveDataWithCustomToken(token)
377+
auth.signInWithCustomToken(token)
378378
.then(onAuthUserCredentialSuccess, onAuthError);
379379
}
380380

@@ -383,7 +383,7 @@ function onSignInWithCustomToken(event) {
383383
* Signs in anonymously.
384384
*/
385385
function onSignInAnonymously() {
386-
auth.signInAnonymouslyAndRetrieveData()
386+
auth.signInAnonymously()
387387
.then(onAuthUserCredentialSuccess, onAuthError);
388388
}
389389

0 commit comments

Comments
 (0)