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

Method unlink

packages/firebase-auth/index.android.ts:381–400  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

379 }
380
381 unlink(providerId: string): Promise<User> {
382 return new Promise((resolve, reject) => {
383 if (!this.native) {
384 reject();
385 } else {
386 NSFirebaseAuth().User.unlink(
387 this.native,
388 providerId,
389 new org.nativescript.firebase.auth.FirebaseAuth.Callback({
390 onSuccess(success) {
391 resolve(User.fromNative(success.getUser()));
392 },
393 onError(error) {
394 reject(FirebaseError.fromNative(error));
395 },
396 })
397 );
398 }
399 });
400 }
401
402 updateEmail(email: string): Promise<void> {
403 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

unlinkMethod · 0.65

Tested by

no test coverage detected