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

Method loginWithPhone

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

Source from the content-addressed store, hash-verified

112 }
113
114 async loginWithPhone() {
115 try {
116 const cred = PhoneAuthProvider.provider().credential(this.verificationId, this.code);
117 const value = await firebase().auth().signInWithCredential(cred);
118 console.log('verificationId', this.verificationId);
119 console.log('loginUser', value);
120 this._setCurrentUser(value.user);
121 } catch (e) {
122 console.log('linkPhone error:', e);
123 }
124 }
125
126 createUser() {
127 firebase()

Callers

nothing calls this directly

Calls 7

_setCurrentUserMethod · 0.95
firebaseFunction · 0.90
authMethod · 0.80
credentialMethod · 0.65
signInWithCredentialMethod · 0.65
logMethod · 0.65
providerMethod · 0.45

Tested by

no test coverage detected