I wrote http://drupangular.srgunltd.co.uk which uses AngularJS for the front-end. To post new content via the API I'm simply hardcoding the headers:
"Authorization": "Basic YWRtaW46MTIzcXdl", // encoded user/pass - this is admin/123qwe
I'm completely stuck on how to pass a dynamic auth here. It's like a trade secret or something. I simply want to check if a user is logged in - how can I do this??