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

Method linkGithub

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

Source from the content-addressed store, hash-verified

29 }
30
31 async linkGithub() {
32 if (!this.user) {
33 return;
34 }
35 const provider = new OAuthProvider('github.com');
36 provider.addCustomParameter('allow_signup', 'false');
37 provider.setScopes(['user:email']);
38
39 firebase()
40 .auth()
41 .getProviderCredential(provider)
42 .then((cred) => {
43 firebase().auth().currentUser.linkWithCredential(cred);
44 console.log('cred', cred);
45 })
46 .catch((e) => {
47 console.log('Failed to link Github', e);
48 });
49 }
50
51 async linkYahoo() {
52 if (!this.user) {

Callers

nothing calls this directly

Calls 8

addCustomParameterMethod · 0.95
setScopesMethod · 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