Comparing version 1.0.1 to 1.0.2
@@ -25,3 +25,3 @@ (function() { | ||
text = $$.base64UrlDecode(text); | ||
decipher = crypto.createDecipher(algorithm, password); | ||
decipher = crypto.createDecipher(this.algorithm, password); | ||
dec = decipher.update(text, 'base64', 'utf8'); | ||
@@ -35,2 +35,3 @@ dec += decipher.final('utf8'); | ||
decryptObject: function(token) { | ||
console.log; | ||
return JSON.parse(this.decryptString(token)); | ||
@@ -49,2 +50,3 @@ }, | ||
*/ | ||
findCreateUpdate: $$.findCreateUpdate, | ||
controller: function(req, res, UserModel, UserModelConvert) { | ||
@@ -86,3 +88,3 @@ var rawData, redirect, token, userData, v; | ||
} | ||
return $$.findCreateUpdate(UserModel, userData, function(err, user) { | ||
return this.findCreateUpdate(UserModel, userData, function(err, user) { | ||
return req.login(user, function(err) { | ||
@@ -89,0 +91,0 @@ if (redirect) { |
{ | ||
"name": "authcrypto", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Create json-based token, encrypt/decrypt token at other server ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
7614
92