# Ionic2 + Firebase Auth

**URL:** <https://forum.ionicframework.com/t/ionic2-firebase-auth/61130>\
**Category:** ionic-v3\
**Created:** [August 21, 2016, 12:24pm UTC](https://forum.ionicframework.com/t/ionic2-firebase-auth/61130 "2016-08-21T12:24:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgpinto](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rgpinto/32/94858_2.png) [@rgpinto](https://forum.ionicframework.com/u/rgpinto)\
**Post date:** [August 21, 2016, 12:24pm UTC](https://forum.ionicframework.com/t/ionic2-firebase-auth/61130/1 "2016-08-21T12:24:00Z")

</div>

Hi,

I’ve setup Firebase (SDK 3) and Ionic2. It works fine in the browser, but in the emulator I can’t pass the login process.  
I can authenticate with Facebook but I get stuck in the callback to the firebase auth handler…

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/9/6/96f10f0869fcfcd293e55e79139e73b6ad45f389.png)

I’ve added allow-navigation href="\*" to my config.xml.

Any ideas to fix this?  
I can’t seem to find any errors in the logs.

---

<div class="post-metadata">

**Author:** ![chris012543](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@chris012543](https://forum.ionicframework.com/u/chris012543)\
**Post date:** [August 22, 2016, 4:09pm UTC](https://forum.ionicframework.com/t/ionic2-firebase-auth/61130/2 "2016-08-22T16:09:56Z")

</div>

Just checking if you got this working? I’m having similar issues.

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [August 22, 2016, 10:10pm UTC](https://forum.ionicframework.com/t/ionic2-firebase-auth/61130/3 "2016-08-22T22:10:28Z")

</div>

did you see my example here to get you headed in the right direction [https://github.com/aaronksaunders/AngularFire2-Ionic2-Facebook](https://github.com/aaronksaunders/AngularFire2-Ionic2-Facebook) @chris012543 @rgpinto

---

<div class="post-metadata">

**Author:** ![rgpinto](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rgpinto/32/94858_2.png) [@rgpinto](https://forum.ionicframework.com/u/rgpinto)\
**Post date:** [August 25, 2016, 9:09am UTC](https://forum.ionicframework.com/t/ionic2-firebase-auth/61130/4 "2016-08-25T09:09:28Z")

</div>

@chris012543 No, I got pass the location.protocol error by editing the firebase SDK but after that it stays the same.

@aaronksaunders I was trying to avoid more external dependencies since firebase already has the methods to fetch the credentials. I’ll have to go with ionic native until firebase fixes this, which will be a while (see [Firebase Github Issue](https://github.com/angular/angularfire2/issues/308#issuecomment-241741538)). Thanks.

---

<div class="post-metadata">

**Author:** ![aaronksaunders](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/aaronksaunders/32/13729_2.png) [@aaronksaunders](https://forum.ionicframework.com/u/aaronksaunders)\
**Post date:** [August 25, 2016, 1:52pm UTC](https://forum.ionicframework.com/t/ionic2-firebase-auth/61130/5 "2016-08-25T13:52:31Z")

</div>

@rgpinto i have used both approaches… ionic-native and the FB javascript library. The issue I personally had with ngOAuth approach is that there is not access to the APIs.

Also the Issue you referenced indicates that when Firebase does resolve the issue, the solution will still require an external dependency since you will need to install the plugins for it to work.

---

<div class="post-metadata">

**Author:** ![rgpinto](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rgpinto/32/94858_2.png) [@rgpinto](https://forum.ionicframework.com/u/rgpinto)\
**Post date:** [August 25, 2016, 5:02pm UTC](https://forum.ionicframework.com/t/ionic2-firebase-auth/61130/6 "2016-08-25T17:02:30Z")

</div>

I believe that I would only need InAppBrowser plugin. The rest should work fine once FB fixes the bug.
