Skip to content

anurag1004/nodejs-Auth0-Demo

Repository files navigation

NodeJs AUTH0 Demo App

Fully working nodejs auth0 application with added UI.

Modules Used

  • passport - an authentication middleware for Node.js
  • passport-auth0 - an Auth0 authentication strategy for Passport
  • express-session - a middleware to manage sessions
  • dotenv - a module to load environment variables from a .env file

Features

  • Added a beautiful landing page
  • My profile dashboard

Installation

Install the dependencies and devDependencies and start the server.

$ cd nodejs-Auth0-Demo
$ npm install 
$ node app

For production environments...

$ npm install --production
$ NODE_ENV=production node app

For more reference

Official Auth0 Node.js Docs

NOTE :
   - Don't forget to create .env file and add Auth0 domain, api secret and client id.

Screenshots

Landing Page Auth0 Api User Profile