1.0.2 • Published 6 years ago

express-authjs v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Express Auth Middleware

express-authjs is a simple to use express middleware that adds configurable authentication to your express API routes with as little affort as possible.

Table of Contents

Getting Started

The instructions below will help you get started using exress-authjs as quickly as possible.

Installing

npm install express-authjs

Basic Usage

const express = require('express');
const { Authenticator, guard } = require('express-authjs');

const authenticator = new Authenticator();

app.get('/', (req, res) => {
    res.send('Unprotected route.');
})

app.get('/protected', guard(authenticator), (req, res) => {
    res.send('Protected route.');
})

Documentation

Please refer to the documentation website on https://nerderbur.github.io/express-authjs

Changelog

Check the Github Releases page

License

MIT License

1.0.2

6 years ago

1.0.0

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago