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

Method linkYahoo

apps/demo/src/plugin-demos/firebase-auth.ts:51–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 }
50
51 async linkYahoo() {
52 if (!this.user) {
53 return;
54 }
55 const provider = new OAuthProvider('yahoo.com');
56 provider.addCustomParameter('prompt', 'login');
57 provider.addCustomParameter('language', 'en');
58
59 firebase()
60 .auth()
61 .getProviderCredential(provider)
62 .then((cred) => {
63 firebase().auth().currentUser.linkWithCredential(cred);
64 })
65 .catch((e) => {
66 console.log('Failed to link Yahoo', e);
67 });
68 }
69
70 async linkGoogle() {
71 try {

Callers

nothing calls this directly

Calls 7

addCustomParameterMethod · 0.95
firebaseFunction · 0.90
authMethod · 0.80
linkWithCredentialMethod · 0.65
logMethod · 0.65
thenMethod · 0.45
getProviderCredentialMethod · 0.45

Tested by

no test coverage detected