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

Method verifyBeforeUpdateEmail

packages/firebase-auth/index.android.ts:495–515  ·  view source on GitHub ↗
(email: string, actionCodeSettings?: ActionCodeSettings)

Source from the content-addressed store, hash-verified

493 }
494
495 verifyBeforeUpdateEmail(email: string, actionCodeSettings?: ActionCodeSettings): Promise<void> {
496 return new Promise((resolve, reject) => {
497 if (!this.native) {
498 reject();
499 } else {
500 NSFirebaseAuth().User.verifyBeforeUpdateEmail(
501 this.native,
502 email,
503 actionCodeSettings?.native ?? null,
504 new org.nativescript.firebase.auth.FirebaseAuth.Callback({
505 onSuccess(success) {
506 resolve();
507 },
508 onError(error) {
509 reject(FirebaseError.fromNative(error));
510 },
511 })
512 );
513 }
514 });
515 }
516}
517
518export class AuthSettings implements IAuthSettings {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected