Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Enables basic token authentication for restify
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
restify-token.js

README.md

restify-token-auth

Pending readme. (unfinished version)

Baic use

var restify = require('restify'),
    restifyToken = require('./libs/restify-token.js'),
    redis = require('./libs/redis.js'),

    server = restify.createServer({
        name    : 'API name',
        version : '0.0.1'
    });

server.use(restify.queryParser());
server.use(redis.load); //load redis to res.locals.redis #this gonna be changed soon

//Token system authentication
restifyToken.auth({s:server,r:restify});
Something went wrong with that request. Please try again.