MCPcopy Create free account
hub / github.com/NativeScript/firebase / updateEmail

Method updateEmail

packages/firebase-auth/index.android.ts:402–421  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

400 }
401
402 updateEmail(email: string): Promise<void> {
403 return new Promise((resolve, reject) => {
404 if (!this.native) {
405 reject();
406 } else {
407 NSFirebaseAuth().User.updateEmail(
408 this.native,
409 email,
410 new org.nativescript.firebase.auth.FirebaseAuth.Callback({
411 onSuccess(success) {
412 resolve();
413 },
414 onError(error) {
415 reject(FirebaseError.fromNative(error));
416 },
417 })
418 );
419 }
420 });
421 }
422
423 updatePassword(password: string): Promise<void> {
424 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

updateEmailMethod · 0.65

Tested by

no test coverage detected