/Nodejs-Mongodb-JWT-Auth

Authentication & Authorization app made in nodejs/express & mongodb that also uses JWT for authorization..

Primary LanguageJavaScript

Note: This repository is a part of "DO-Nation" project

Node.js MongoDB – User Authentication & Authorization example with JWT & Mongoose

User Registration, User Login and Authorization process.

The diagram shows flow of how we implement User Registration, User Login and Authorization process.

jwt-token-authentication-node-js-example-flow

For more detail, please visit:

Node.js + MongoDB: User Authentication & Authorization with JWT

You may need to implement Refresh Token:

jwt-refresh-token-node-js-example-flow

Node.js JWT Refresh Token with MongoDB example

Project setup

npm install

Run

node server.js