Comparing version 0.1.0 to 0.2.0
@@ -10,5 +10,6 @@ var redis = require("redis"); | ||
this.port = options.port || 6379; | ||
this.redisClient = redis.createClient(this.port, this.host, { | ||
no_ready_check: true | ||
}); | ||
this.redisClient = redis.createClient(this.port, this.host); | ||
return this; | ||
@@ -49,2 +50,3 @@ }; | ||
this.redisClient.set(token, JSON.stringify(account), cb); | ||
this.redisClient.expire(token, 3600 * 24 * 30); // token will be valid for 30 days | ||
}; | ||
@@ -51,0 +53,0 @@ |
{ | ||
"name": "authdb", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "database of authenticated users", | ||
@@ -5,0 +5,0 @@ "main": "authdb.js", |
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
2194
54