Skip to content

Template for getting you up and running with Authentiq passwordless login, using PassportJS on ExpressJS.

License

Notifications You must be signed in to change notification settings

tmackness/authentiq-passportjs-expressjs-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentiq authentication with ExpressJS and PassportJS

Authentiq is a great way to securely setup authentication in your application.

First off you will need to register for an account at Authentiq.

With this template you will need to create a Server Side Application, providing a redirect URI. If working locally, you will need to setup a SSL as PassportJS requires HTTPS. An easy way to get around this is to use another service called ngrok. Your callback URI should be setup both in your authentiq account and in the passport-setup.js file. Also in the same file provide the Client ID.

Note:

  • Tested Node v10.0.0
  • ES6 & Async/Await has been used

Required environment variables:

  • MONOGO_URL
  • SESSION_SECRET
  • AUTHENTIQ_SECRET
  • NODE_ENV
    • "development"; or
    • "production"

In development mode sessions are setup to use a session file which creates a directory named sessions. In production it will use REDIS.

Before running server: npm install to install the modules.

If using the built in script to run the server e.g. npm run dev, you will need to install nodemon if you don't have it. npm i -g nodemon.

About

Template for getting you up and running with Authentiq passwordless login, using PassportJS on ExpressJS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published