Mean Stack Authentication Authorization Save

MEAN stack Authentication and Authorization example - Registration, Login, Logout with JWT

Project README

MEAN stack Authentication and Authorization example

Build MEAN stack JWT Authentication & Authorization example with HttpOnly Cookie and JWT.

Flow for User Registration and User Login

For JWT – Token based Authentication with Rest API, we’re gonna call 2 endpoints:

  • POST api/auth/signup for User Registration
  • POST api/auth/signin for User Login
  • POST api/auth/signout for User Logout

You can take a look at following flow to have an overview of Requests and Responses:

mean-stack-authentication-authorization-flow

For more detail, please visit the tutorial:

MEAN stack Authentication & Authorization with Angular 13

MEAN stack Authentication & Authorization with Angular 14

MEAN stack Authentication & Authorization with Angular 15

MEAN stack Authentication & Authorization with Angular 16

MEAN stack Authentication & Authorization with Angular 17

Run

Node.js Server

Run node server.js for a dev server exporting API at http://localhost:8080/.

Angular Client

Run ng serve --port 8081. Navigate to http://localhost:8081/.

More practice

Fullstack with Node:

Angular 13 + Node Express + MongoDB example

Angular 14 + Node Express + MongoDB example

Angular 15 + Node Express + MongoDB example

Angular 16 + Node Express + MongoDB example

Angular 17 + Node Express + MongoDB example

Angular 13 + Node Express: File upload example

Angular 14 + Node Express: File upload example

Angular 15 + Node Express: File upload example

Angular 16 + Node Express: File upload example

Angular 17 + Node Express: File upload example

Integration (run back-end & front-end on same server/port)

How to integrate Angular with Node Restful Services

Open Source Agenda is not affiliated with "Mean Stack Authentication Authorization" Project. README Source: bezkoder/mean-stack-authentication-authorization

Open Source Agenda Badge

Open Source Agenda Rating