0.1.10 • Published 5 years ago

@pritch9/auth0r v0.1.10

Weekly downloads
14
License
MIT
Repository
github
Last release
5 years ago

Auth0r

Welcome to Auth0r, the all-in-one user management module.

Usage

There are a few hooks to allow you to customize the usage of Auth0r in your API. Please let me know if I should release specific usage guides for different API types (REST, GrahpQL, etc.).

To initialize Auth0r, just create a new instance

let Auth0r = new Auth0r(connection: any)

To make things go quicker, you have to pass Knex connection options. It just plugs them into the query builder. I will make it easier in the future somehow.

Middleware

Middleware is accessible by

Auth0r.middleware()

so in express, you would 'use' it like

let app = express();

...

app.use(Auth0r.middleware);

...

Note: in order for Auth0r to be effective, you have to 'use' Auth0r's middleware before anything else. Express 'uses' sequentially, so if you notice you are sending invalid requests and the API is still returning something, then you probably have an ordering issue.

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago

0.1.0

5 years ago