authkit

A small brunch of code that help developer to manage access control

npm install authkit
10 downloads in the last month

AuthKit

A small bundle of tools that help developer to build authentication and authorization.


This package split in serveral domain, usage are below:

Server

The function under this domain are specified binding to Express (>=3.0.0rc1).

allowAllAjaxOrigin

Allow all request from xHR, avoid of limit of Access-Control-Allow-Origin

// to use this feature, just put this line to app.js before ** app.use(app.router); **

app.use(AuthKit.server.allowAllAjaxOrigin);

Method Not Found Message

apiNotFoundError && pageNotFoundError

These method will return not found page or message to client.

// to use this feature, just put this line to app.js after ** app.use(app.router); **

app.use(AuthKit.server.apiNotFoundError);
app.use(AuthKit.server.pageNotFoundError);
npm loves you