Build MEAN stack JWT Authentication & Authorization example with HttpOnly Cookie and JWT.
For JWT – Token based Authentication with Rest API, we’re gonna call 2 endpoints:
- POST
api/auth/signupfor User Registration - POST
api/auth/signinfor User Login - POST
api/auth/signoutfor User Logout
You can take a look at following flow to have an overview of Requests and Responses:
For more detail, please visit the tutorial:
Run node server.js for a dev server exporting API at http://localhost:8080/.
Run ng serve --port 8081. Navigate to http://localhost:8081/.
Fullstack with Node:
Integration (run back-end & front-end on same server/port)
