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

Method linkGoogle

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

Source from the content-addressed store, hash-verified

68 }
69
70 async linkGoogle() {
71 try {
72 if (!this.user) {
73 return;
74 }
75 if (!didInit) {
76 await GoogleSignin.configure();
77 didInit = true;
78 }
79 const isAvailable = await GoogleSignin.playServicesAvailable();
80 if (!isAvailable) {
81 return;
82 }
83 const user = await GoogleSignin.signIn();
84 const cred = GoogleAuthProvider.credential(user.idToken, user.accessToken);
85 const linked = await this.user.linkWithCredential(cred);
86 console.log(linked);
87 } catch (e) {
88 console.log('linkGoogle', e.native);
89 }
90 }
91
92 async linkPhone() {
93 if (!firebase().auth().currentUser) {

Callers

nothing calls this directly

Calls 3

credentialMethod · 0.65
linkWithCredentialMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected