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

Method updatePhoneNumber

packages/firebase-auth/index.android.ts:444–463  ·  view source on GitHub ↗
(credential: PhoneAuthCredential)

Source from the content-addressed store, hash-verified

442 }
443
444 updatePhoneNumber(credential: PhoneAuthCredential): Promise<void> {
445 return new Promise((resolve, reject) => {
446 if (!this.native) {
447 reject();
448 } else {
449 NSFirebaseAuth().User.updatePhoneNumber(
450 this.native,
451 credential.native,
452 new org.nativescript.firebase.auth.FirebaseAuth.Callback({
453 onSuccess(success) {
454 resolve();
455 },
456 onError(error) {
457 reject(FirebaseError.fromNative(error));
458 },
459 })
460 );
461 }
462 });
463 }
464
465 updateProfile(profile: UserProfileChangeRequest): Promise<void> {
466 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

updatePhoneNumberMethod · 0.65

Tested by

no test coverage detected