Skip to content

naxhh/restify-token-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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});

About

Enables basic token authentication for restify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published