An open API service indexing awesome lists of open source software.

https://github.com/nodecloud/koa-auth

A koa middleware for intercepting unauthorized requests
https://github.com/nodecloud/koa-auth

Last synced: 4 months ago
JSON representation

A koa middleware for intercepting unauthorized requests

Awesome Lists containing this project

README

          

# koa-auth

koa-auth

[![Build Status](https://travis-ci.org/nodecloud/koa-auth.svg?branch=master)](https://travis-ci.org/nodecloud/koa-auth)
[![Coverage Status](https://coveralls.io/repos/github/nodecloud/koa-auth/badge.svg?branch=master)](https://coveralls.io/github/nodecloud/koa-auth?branch=master)

## Get Started

Install the package:

```shell
npm install --save koa-auth-middleware
```

Usage:

```javascript
import koaAuth from 'koa-auth-middleware';

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