New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

authcrypto

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authcrypto - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc