Do I need some cookies plugin for authentication to work?


I am trying to build an app that has a login/register feature using Codeiginier/Ion Auth/ Codeigniter RestServer and the code seems to work in the browser(accessing the www folder from the browser) but it doesn’t work if I do ‘ionic serve’.

The login is successful in both cases, but checking if the user is logged in on the profile “page” returns false when testing from the “ionic server” window.

Is there a need for ngCookies or some other plugin, or maybe apps need a different type of login functionality?

Thank you

Update: Seems like every API request is done with a different session. At least that is what codeigniter records in the session database. Only the first one contains the correct login values, and all the next API requests use a different session. Not sure why yet