# Firebase - Ionic 4 - verifyPhoneNumber

**URL:** <https://forum.ionicframework.com/t/firebase-ionic-4-verifyphonenumber/148586>\
**Category:** Ionic Native\
**Created:** [November 26, 2018, 11:00am UTC](https://forum.ionicframework.com/t/firebase-ionic-4-verifyphonenumber/148586 "2018-11-26T11:00:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajxautomacao](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@ajxautomacao](https://forum.ionicframework.com/u/ajxautomacao)\
**Post date:** [November 26, 2018, 11:00am UTC](https://forum.ionicframework.com/t/firebase-ionic-4-verifyphonenumber/148586/1 "2018-11-26T11:00:58Z")

</div>

After install firebase plugin on ionic 4.  
Save the google-services.json in the project folder.  
Actived the Smartphone login in firebase console.  
Test if some function like getToken and other works fine.

I try to use verifyPhoneNumber function like

verifyPhoneNumber(number) {  
this.firebase.verifyPhoneNumber(number, 30000).then( res =\> {  
this.msg = JSON.stringify(res);  
})  
.catch( error =\> {  
this.msg = error;  
});  
}

The msg ‘JSON error’.  
Some can help me, how make it work for login with phone number?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:08pm UTC](https://forum.ionicframework.com/t/firebase-ionic-4-verifyphonenumber/148586/2 "2021-07-19T21:08:24Z")

</div>

Closed on July 19, 2021, 9:08pm UTC


