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
- Host: GitHub
- URL: https://github.com/nodecloud/koa-auth
- Owner: nodecloud
- License: mit
- Created: 2017-10-26T03:07:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-27T04:15:13.000Z (about 8 years ago)
- Last Synced: 2025-09-07T17:16:07.530Z (4 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# koa-auth
koa-auth
[](https://travis-ci.org/nodecloud/koa-auth)
[](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())
```