/koa-auth

A koa middleware for intercepting unauthorized requests

Primary LanguageJavaScriptMIT LicenseMIT

koa-auth

koa-auth

Build Status Coverage Status

Get Started

Install the package:

npm install --save koa-auth-middleware

Usage:

import koaAuth from 'koa-auth-middleware';

// get the koa app
// use the default logic
app.use(koaAuth())