https://github.com/jacobv90/ninsho
A simple, versatile, robust, and stateless Koa middleware that exposes an authentication and user management rest api utilizing Auth0
https://github.com/jacobv90/ninsho
auth0 authentication backend koa koa-middleware microservices-architecture nodejs rest-api typescript user-management
Last synced: about 1 month ago
JSON representation
A simple, versatile, robust, and stateless Koa middleware that exposes an authentication and user management rest api utilizing Auth0
- Host: GitHub
- URL: https://github.com/jacobv90/ninsho
- Owner: JacobV90
- Created: 2018-08-20T23:05:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T12:49:31.000Z (over 2 years ago)
- Last Synced: 2025-03-21T22:14:38.243Z (about 1 month ago)
- Topics: auth0, authentication, backend, koa, koa-middleware, microservices-architecture, nodejs, rest-api, typescript, user-management
- Language: TypeScript
- Homepage:
- Size: 948 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ninsho
[](https://travis-ci.org/JacobV90/ninsho)
[](https://coveralls.io/github/JacobV90/ninsho?branch=master)## Installation
```sh
yarn add ninsho
```
## Usage
### Javascript
```javascript
const Koa = require('koa');
const { Ninsho } = require('ninsho');
const app = new Koa();const ninsho = new Ninsho({
"domain": "your-domain.auth0.com",
"clientId": "your-client-id",
"clientSecret": "your-client-secret-shhh"
});app.use(ninsho.mountApi());
app.listen(3000);
```### TypeScript
```typescript
import * as Koa from 'koa';
import { Ninsho } from 'ninsho';
const app = new Koa();const ninsho = new Ninsho({
"domain": "your-domain.auth0.com",
"clientId": "your-client-id",
"clientSecret": "your-client-secret-shhh"
});app.use(ninsho.mountApi());
app.listen(3000);
```