()
| 90 | } |
| 91 | |
| 92 | async linkPhone() { |
| 93 | if (!firebase().auth().currentUser) { |
| 94 | console.info('Login to link phone'); |
| 95 | return; |
| 96 | } |
| 97 | try { |
| 98 | const cred = PhoneAuthProvider.provider().credential(this.verificationId, this.code); |
| 99 | const linkedCred = await firebase().auth().currentUser.linkWithCredential(cred); |
| 100 | console.log('verificationId', linkedCred); |
| 101 | } catch (e) { |
| 102 | console.log('linkPhone error:', e); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | async getVerificationCode() { |
| 107 | try { |
nothing calls this directly
no test coverage detected