# Firebase persist login

**URL:** <https://forum.ionicframework.com/t/firebase-persist-login/89021>\
**Category:** ionic-v3\
**Created:** [May 5, 2017, 3:36am UTC](https://forum.ionicframework.com/t/firebase-persist-login/89021 "2017-05-05T03:36:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjohnst](https://avatars.discourse-cdn.com/v4/letter/c/aeb1de/32.png) [@cjohnst](https://forum.ionicframework.com/u/cjohnst)\
**Post date:** [May 5, 2017, 3:36am UTC](https://forum.ionicframework.com/t/firebase-persist-login/89021/1 "2017-05-05T03:36:13Z")

</div>

What I am trying to do is use firebase to authenticate the user (using Email/Password or Facebook).  
I found several articles to show how to do this and it works. I am trying save the user credentials in Storage (@ionic/storage) so the next time they use the app it will automatically sign them in. I can save the email and password in Storage but what do I save in Storage to auto login the Facebook user?

Is there a blog or article out there to demonstrate this?

Thank you.

---

<div class="post-metadata">

**Author:** ![dlovera](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dlovera/32/108413_2.png) [@dlovera](https://forum.ionicframework.com/u/dlovera)\
**Post date:** [January 27, 2018, 4:19pm UTC](https://forum.ionicframework.com/t/firebase-persist-login/89021/2 "2018-01-27T16:19:41Z")

</div>

Hello @cjohnst I am having the same issue, have you found a solution or a workaround ?

---

<div class="post-metadata">

**Author:** ![TheLegend99](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TheLegend99](https://forum.ionicframework.com/u/TheLegend99)\
**Post date:** [February 14, 2018, 2:35am UTC](https://forum.ionicframework.com/t/firebase-persist-login/89021/3 "2018-02-14T02:35:02Z")

</div>

If I may ask @cjohnst , how did you get the email and password to save in Ionic Storage? This is something have been stuck on.

---

<div class="post-metadata">

**Author:** ![FrancoisIonic](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/francoisionic/32/106767_2.png) [@FrancoisIonic](https://forum.ionicframework.com/u/FrancoisIonic)\
**Post date:** [February 14, 2018, 2:52am UTC](https://forum.ionicframework.com/t/firebase-persist-login/89021/4 "2018-02-14T02:52:13Z")

</div>

Not to be blunt, but this is the most easy part of integrating with a PAAS.  
As you may know, Ionic dropped its storage service while letting thousands try it (I was one of them).  
And I doubt they will try to do better or otherwise, they couldn’t afford a resale on free plan.

Then, I would STRONGLY suggest you to use local storage as a temporary database, if you don’t have a good PAAS or good own server.

---

<div class="post-metadata">

**Author:** ![felix9607](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@felix9607](https://forum.ionicframework.com/u/felix9607)\
**Post date:** [February 14, 2018, 7:07am UTC](https://forum.ionicframework.com/t/firebase-persist-login/89021/5 "2018-02-14T07:07:12Z")

</div>

If you are using firebase correctly, **it should store the Login session by itself!**

Also, it’s not recommended to store userdatas in localstorage or any Kind of storage like this.
