how to make angularjs call to nodejs api and auth with stormpath how to make angularjs call to nodejs api and auth with stormpath express express

how to make angularjs call to nodejs api and auth with stormpath


I believe that the Stormpath middleware is intercepting the API call and trying to render the login page. I think the solution would be to put stormpath.LoginRequired middleware on the route that serves your Angular app, this will force them to the Login page and after they login should have a session cookie which will be used for API calls.