Maybe I’m going about this wrong, but it seems like such an obvious thing, that I didn’t think it would be this hard to find information about.
So I am building an app that logs the user into a site/API once successful I navigate to a listView page which should load a list of items from the API, using a second call. On the backend we set a cookie with a session ID then on the second call the backend reads that cookie and handles any session stuff it needs to do, i.e. is the user logged in, if yes, return the list else return an error message.
The problem I have been having is after logging in and navigating to the list page the second call seems to be missing the cookies set by the first call.
I thought ok read the cookies in after the login is successful then on the second call write the cookies out, but I haven’t been able to figure out how to do this in NativeScript/TypeScript/Angular. I was following the Groceries tutorial substituting our API’s with the ones in the tutorial.
Any help for a complete nudie with TypeScript would be helpful.