I created an API that returns data using NodeJS
; this runs on port 3000
. I then created a Angular 2
project using angular-cli
. This is running on port 4200
.
All is well until I thought about authentication. I am not sure how I can authenticate pages that are served up through the lite-server
that Angular2
uses. I have really enjoyed the separation of concerns as I don't have to deal with the views with NodeJS
.
How am I able to authenticate the server that comes built into a angular-cli
build that would allow more too reject pages if user is not authenticated?
via Phil
No comments:
Post a Comment