Connecting Ionic App to existing MEAN Stack + User Auth


#1

Based a project’s api and user auth on a project by scotch (https://scotch.io/tutorials/easy-node-authentication-setup-and-local). Generally same, but trying to build Ionic app that can use this existing user auth infrastructure.

Wondered if anyone had any suggestions.

Thanks!!!


#2

@gnomeontherun could you assist?


#3

The example in the blog post talks about an authentication method that doesn’t provided a RESTful interface for logging in. This post http://scottksmith.com/blog/2014/05/29/beer-locker-building-a-restful-api-with-node-passport/ provides a more useful explanation of how to build a RESTful API for login using node and passport. You can extend an existing system to add a new set of routes to handle user logins for the API.