# IONIC 2 Cookie based auth

**URL:** <https://forum.ionicframework.com/t/ionic-2-cookie-based-auth/79653>\
**Category:** ionic-v3\
**Created:** [February 14, 2017, 10:43pm UTC](https://forum.ionicframework.com/t/ionic-2-cookie-based-auth/79653 "2017-02-14T22:43:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BadGuyK](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BadGuyK](https://forum.ionicframework.com/u/BadGuyK)\
**Post date:** [February 14, 2017, 10:43pm UTC](https://forum.ionicframework.com/t/ionic-2-cookie-based-auth/79653/1 "2017-02-14T22:43:18Z")

</div>

Is it possible to do cookie based auth in IONIC 2? Please provide links or explain. Thank you

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [February 14, 2017, 11:01pm UTC](https://forum.ionicframework.com/t/ionic-2-cookie-based-auth/79653/2 "2017-02-14T23:01:42Z")

</div>

If you have control over the backend, [tokens \> cookies](https://auth0.com/blog/cookies-vs-tokens-definitive-guide/), but if you don’t, the answer is “yes, and [it would work just like any other Angular2 application](https://www.google.com/search?q=angular2+cookies)”.

---

<div class="post-metadata">

**Author:** ![BadGuyK](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@BadGuyK](https://forum.ionicframework.com/u/BadGuyK)\
**Post date:** [February 15, 2017, 1:00am UTC](https://forum.ionicframework.com/t/ionic-2-cookie-based-auth/79653/3 "2017-02-15T01:00:42Z")

</div>

Hey, thank you but none of those links actually describe how i can accomplish this in IONIC 2.

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [February 15, 2017, 3:47am UTC](https://forum.ionicframework.com/t/ionic-2-cookie-based-auth/79653/4 "2017-02-15T03:47:29Z")

</div>

> [@BadGuyK](#):
>
> none of those links actually describe how i can accomplish this in IONIC 2

As I said before, there is nothing different with Ionic than any other Angular2 application in this regard.
