MCPcopy Index your code
hub / github.com/NativeScript/firebase / linkWithCredential

Method linkWithCredential

packages/firebase-auth/index.android.ts:273–292  ·  view source on GitHub ↗
(credential: AuthCredential)

Source from the content-addressed store, hash-verified

271 }
272
273 linkWithCredential(credential: AuthCredential): Promise<IUserCredential> {
274 return new Promise((resolve, reject) => {
275 if (!this.native) {
276 reject();
277 } else {
278 NSFirebaseAuth().User.linkWithCredential(
279 this.native,
280 credential.native,
281 new org.nativescript.firebase.auth.FirebaseAuth.Callback({
282 onSuccess(success) {
283 resolve(toUserCredential(success));
284 },
285 onError(error) {
286 reject(FirebaseError.fromNative(error));
287 },
288 })
289 );
290 }
291 });
292 }
293
294 reauthenticateWithProvider(provider: OAuthProvider): Promise<IUserCredential> {
295 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

linkWithCredentialMethod · 0.65

Tested by

no test coverage detected