Comparing version 0.2.0 to 0.2.1
@@ -48,2 +48,3 @@ //Global variables | ||
redis.get(req.headers[config.header], function(err,response) { | ||
req.auth = response | ||
if (err) { | ||
@@ -50,0 +51,0 @@ if (config.returnError == true) { |
{ | ||
"name": "redis.auth", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A non prescriptive Redis Authentication module for Express", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -61,2 +61,3 @@ [![Build Status](https://travis-ci.org/ChrisCates/redis.auth.svg?branch=master)](https://travis-ci.org/ChrisCates/redis.auth) | ||
``` | ||
req.auth = {Redis Object} | ||
return res.status(403).send({ | ||
@@ -72,2 +73,3 @@ "error": true, | ||
``` | ||
req.auth = {Redis Object} | ||
//Sets these variables in req so you can check for them on your own | ||
@@ -74,0 +76,0 @@ req.error = true |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33594
296
81