# Ionic auth with firebase provider

**URL:** <https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091>\
**Category:** ionic-v3\
**Created:** [January 12, 2018, 11:04pm UTC](https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091 "2018-01-12T23:04:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TJL](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tjl/32/96319_2.png) [@TJL](https://forum.ionicframework.com/u/TJL)\
**Post date:** [January 12, 2018, 11:04pm UTC](https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091/1 "2018-01-12T23:04:57Z")

</div>

Having the hardest time getting the latest ionic and firebase/angularfire2 going.

Did anyone successfully get signinWithPopUp or signinWithRedirect working on their app? Still getting a 403 and after following the docs here [https://firebase.google.com/docs/auth/web/cordova](https://firebase.google.com/docs/auth/web/cordova) getting a different error when trying to build for ios.

`Error: Cannot find module '../plugman/platforms/ios'`

---

<div class="post-metadata">

**Author:** ![javebratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/javebratt/32/104226_2.png) [@javebratt](https://forum.ionicframework.com/u/javebratt)\
**Post date:** [January 19, 2018, 2:09pm UTC](https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091/2 "2018-01-19T14:09:55Z")

</div>

Hey @TJL `signinWithPopUp()` and `signinWithRedirect()` won’t work on Cordova apps, the protocol they try to use it `https://` but the phone tries to implement `file://`.

To accomplish social login your best bet is to use the native plugins from Ionic Native.

For Google login: [https://ionicframework.com/docs/native/google-plus/](https://ionicframework.com/docs/native/google-plus/)

For Facebook: [https://ionicframework.com/docs/native/facebook/](https://ionicframework.com/docs/native/facebook/)

Let me know if you need any help 😃

---

<div class="post-metadata">

**Author:** ![TJL](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tjl/32/96319_2.png) [@TJL](https://forum.ionicframework.com/u/TJL)\
**Post date:** [January 19, 2018, 11:26pm UTC](https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091/3 "2018-01-19T23:26:44Z")

</div>

Very kind of you to offer up help, its people like you that can make all the diffence. I did end up going with the ionic-native options. Thanks again!

---

<div class="post-metadata">

**Author:** ![javebratt](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/javebratt/32/104226_2.png) [@javebratt](https://forum.ionicframework.com/u/javebratt)\
**Post date:** [January 20, 2018, 1:51am UTC](https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091/4 "2018-01-20T01:51:57Z")

</div>

Thank you for those kind words 😊…

Did the set up work for you with Ionic Native?

---

<div class="post-metadata">

**Author:** ![TJL](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/tjl/32/96319_2.png) [@TJL](https://forum.ionicframework.com/u/TJL)\
**Post date:** [January 21, 2018, 3:23pm UTC](https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091/5 "2018-01-21T15:23:31Z")

</div>

Sure did, thanks again!

---

<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:55pm UTC](https://forum.ionicframework.com/t/ionic-auth-with-firebase-provider/118091/6 "2021-07-19T21:55:40Z")

</div>

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


