I am attempting to build my first Cordova App using Ionic. I am after some advice & help please.
The app I attempting to build requires authentication, to fetch data from a CMS. I have built a WebAPI that can return me the JSON I expect using Basic HTTP Authentication. All data that is needed for the app requires every request to talk back to the API and use Basic Authentication.
So my question is what is best practises for this sort of scenario. As I ideally want the user to login in once and then all further requests use the saved credentials for the further requests.
I can not use a service like 0Auth (as far as I know) with the custom DB connector as I am not in control of each and every CMS installation hence it needs to talk back to the CMS using a URL, username & password to verify it all the time.
So what are the recommended options I can do please?
Do I store a cookie, or the credentials in some LocalStorage perhaps?
I look forward to hearing from you all and getting advice on this.