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.
- Initial files served from public file
- JWT generation upon login
- IP validation
- Redirection to dash
- Authentication of dash permission
- Augmented appConfig file.
git clone https://github.com/nuntius-rex/node-jwt-login.git
cd node-jwt-login
npm install
npm start
http://localhost:3000
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.