/node-jwt-login

A simple JWT login example in Node JS.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

node-jwt-login

A simple JWT login example in Node JS.

This approach is to show a SPA login using JWT. Upon login you are redirected to a private dashboard area. The JWT information is confirmed and then augmented via a second call on the dashboard page load.

Features

  • Initial files served from public file
  • JWT generation upon login
  • IP validation
  • Redirection to dash
  • Authentication of dash permission
  • Augmented appConfig file.

Install

git clone https://github.com/nuntius-rex/node-jwt-login.git

Run

cd node-jwt-login
npm install
npm start

View

http://localhost:3000

Other Examples

If you would like to see an example of a standard login with Node, checkout this version:
https://github.com/nuntius-rex/node-standard-login.